That's absolutely wrong.
You should use hook_form_alter() to alter forms. It doesn't belong in the theming layer.
To implement custom validation logic, use a #validate callback.
Wim Leers
2010-05-01 17:58:45
That's absolutely wrong.
You should use hook_form_alter() to alter forms. It doesn't belong in the theming layer.
To implement custom validation logic, use a #validate callback.