For some reason I want to alter the value of a select list in an exposed form of views .
I've added this code to the template.php and also Clear the cache :
function mytheme_preprocess_views_exposed_form(&$vars) {
$myviewID = 'views-exposed-form-ouvrage-page';
if ($vars['form']['#id'] == $myviewID){
foreach($vars['form']['field_categorie_tid']["#options"] as $option_term){
$optionterm = $optionterm."test";
}
}
}
After this with devel themer I can see the changes that I've mad but when I clear the cache the changes dosen't take in the select list
am I missing something ? I'm new with preprocess function