Ajax form. Exposed filter with -Any-
. In hook_form_alter()
i write:
if ($form_id == 'views_exposed_form') {
if ($form_state['view']->name == 'machinery') {
$form['field_producer_tid']['#options']['All'] = t('-All-');
}
$form['field_producer_tid']['#default_value'] = "All";
dsm($form);
}
But default value is the second <option>
from select list. Always. Any value which i assign is ignored. How should i set default value?
$view->exposed_input['field_producer_tid'] = "All";
Together they bring result. Thank you for help =) !!! – Baxy