Submitted by CoolGoose on Fri, 06/05/2009 - 21:12
Add this to your template.php file.
- 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)
- $vars['button'] = drupal_render($vars['form']['submit']);
- }
- }
Thanks Tom Kirkpatrick
If you need more help on the topic feel free to add a comment or create a new post on the Forum
Post new comment