From 6ec0561ee2ed0bc0760dc918d40e89c2e647dc88 Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Tue, 4 Jan 2011 16:46:24 +0000 Subject: [PATCH] #994870 follow-up by eaton: Add missing element argument to machine name exists callback. --- includes/form.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index b644343b5e42..2ff93e61c7a3 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -3368,7 +3368,7 @@ function form_validate_machine_name(&$element, &$form_state) { // Verify that the machine name is unique. if ($element['#default_value'] !== $element['#value']) { $function = $element['#machine_name']['exists']; - if ($function($element['#value'], $form_state)) { + if ($function($element['#value'], $element, $form_state)) { form_error($element, t('The machine-readable name is already in use. It must be unique.')); } } -- GitLab