Im using hook_preprocess_views_exposed_form to change the output of my views exposed search box. I am able to successfully change the text on the search button, but I am not able to change the size. I cant figure out where I am going wrong. Here is what I have:
function MYTHEME_preprocess_views_exposed_form(&$vars, $hook) {
// dsm($vars['form']);
if ($vars['form']['#id'] == 'views-exposed-form-all-page') {
$vars['form']['submit']['#value'] = t('Go');
$form['text']['#size'] = '90';
unset($vars['form']['submit']['#printed']);
$vars['button'] = drupal_render($vars['form']['submit']);
}
}
This is what I am stuck on:
$form['text']['#size'] = '90';
$form['text']
is it correct index?