Change the text of Apply Button on views Exposed form

The following snippet changes the views exposed form Apply Button to Search Jobs. Make the changes in template.php file of the currently enabled default theme. Clear cache to see it work.(Clear class registry cache to be precise.)

<?php
function YOUR_THEME_NAME_preprocess_views_exposed_form(&$vars, $hook){
 
// only alter the required form based on id
//  drupal_set_message(t("form id: ".$vars['form']['#id']), 'status', FALSE);
 
if ($vars['form']['#id'] == 'views-exposed-form-search-openings-page') {
   
// Change the text on the submit button
   
$vars['form']['submit']['#value'] = t('Search Jobs');
   
// Rebuild the rendered version (submit button, rest remains unchanged)
   
unset($vars['form']['submit']['#printed']);
   
$vars['button'] = drupal_render($vars['form']['submit']);
  }
}

?>

--
http://www.learn-drupal.in/drupal/how-to-change-apply-button-text-in-dru...