Add this to your template file:
1
2
3
4
5
6
7
8
9
10
11
12
13
| function YOUR_THEME_NAME_preprocess_views_exposed_form(&$vars, $hook) { //this is important
// only alter the required form based on id
if ($vars['form']['#id'] == 'views-exposed-form-where-to-buy-page-1') {
// Change the text on the submit button
$vars['form']['submit']['#value'] = t('Search');
// Rebuild the rendered version (submit button, rest remains unchanged)
unset($vars['form']['submit']['#printed']);
$vars['button'] = drupal_render($vars['form']['submit']);
}
}
|