I have a module where I implemented hook_form_alter:
function mymodule_form_alter(&$form, $form_state, $form_id) {
krumo($form_id);
}
And I always get each form_id displayed twice. Duplicate form_id for each form!! The problem is that if I add in hook_form_alter line like:
$form['#submit'][] = 'my_submit_function';
then this function is getting called twice, and this follows errors. I have no idea why Drupal calls hook_form_alter implementation twice, possibly you have. Thank you in advance!