Posts tagged exposed filters
Change “apply” button text in Drupal Views exposed filters
Apr 18th
When you want the user to search, the “apply” text can be confusing in a Drupal views exposed filter button.
To change this, create your own custom module and add the function below. Note that our module is named “digitalstax_customizations” and we wanted the change applied to a view named “admin_dashboard.”
function digitalstax_customizations_form_alter(&$form, $form_state, $form_id) {
if($form_state['view']->name == 'admin_dashboard') {
$form['submit']['#value'] = t('Search');
}
}