I noticed, as I was looking at the code, that some functions were using the & for some input variables. Namely, the $form of the validate() and submit() functions.
function views_exposed_form_validate(&$form, &$form_state)
function views_exposed_form_submit(&$form, &$form_state)
The Drupal API defines these two functions as receiving $form and &$form_state. You cannot modify the $form variable.
Examples:
http://api.drupal.org/api/function/hook_validate/6
Thank you.
Alexis Wilke
Comments
Comment #1
dawehnerthis is TRUE, at least for validation:
see
http://api.drupal.org/api/function/drupal_validate_form/6 and http://api.drupal.org/api/function/_form_validate/6
not sure about submit
Comment #2
dawehnerI think this should be part of http://drupal.org/node/452384