View - cambiare testo "apply" button

2 contenuti / 0 new
Ultimo contenuto
View - cambiare testo "apply" button

Come da oggetto, come si fa? ho un paio di filtri per una view e questo tasto "apply" il cui testo vorrei che fosse "cerca" o altro...

Ho trovato in rete questo pezzo di codice da applicare al page.tpl.php ma non so come metterci mano...
Consigli?

function main_theme_preprocess_views_exposed_form(&$vars, $hook)
{
/**
Only alter a specific exposed filter form
Note: You need to change the form id to match yours.
*/
if ($vars['form']['#id'] == 'views-exposed-form-news2-views-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']);
}
}

Drupal Version:

scusate sono un idiota, c'era la funzione nella ui di view...