Commit d8425d23 authored by Dries's avatar Dries

- Patch #36606 by hunmonk: validation callback functions can't be overridden.

parent 42e2eb0d
......@@ -114,7 +114,7 @@ function drupal_validate_form($form_id, &$form, $callback = NULL) {
if (function_exists($form_id . '_validate')) {
call_user_func($form_id . '_validate', $form_id, $form_values);
}
if (function_exists($callback . '_validate')) {
elseif (function_exists($callback . '_validate')) {
call_user_func($callback . '_validate', $form_id, $form_values);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment