By kenorb on
I know that you can do on form_alter one validation function:
$form['#validate'] = array('my_validation_function');
But what if some other module want to validate the same form with other function and not replacing existing one?
Comments
Define two at
Define two at once:
Add a validation function to the existing ones:
That's the problem, it
That's the problem, second method doesn't work.
But this syntax is working fine:
$form['#validate']['new_validation_function'] = 'new_validation_function';
Any link to proper documentation how it should looks like?
Why it's so unfriendly?
>Why it's so
>Why it's so unfriendly?
because it's drupal
to validate some form do
to validate some form do next: