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

http://drupal.org/node/283065

Thank you.
Alexis Wilke

Comments

dawehner’s picture

dawehner’s picture

Status: Active » Closed (duplicate)

I think this should be part of http://drupal.org/node/452384