diff options
Diffstat (limited to 'modules/path/path.module')
-rw-r--r-- | modules/path/path.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/path/path.module b/modules/path/path.module index e64b26836..86b714d47 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -173,7 +173,7 @@ function path_form_element_validate($element, &$form_state, $complete_form) { $query->addExpression('1'); $query->range(0, 1); if ($query->execute()->fetchField()) { - form_set_error('alias', t('The alias is already in use.')); + form_error($element, t('The alias is already in use.')); } } } |