Index: includes/form.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/form.inc,v retrieving revision 1.356 diff -u -p -r1.356 form.inc --- includes/form.inc 12 Aug 2009 11:45:14 -0000 1.356 +++ includes/form.inc 14 Aug 2009 04:28:18 -0000 @@ -755,7 +755,10 @@ function _form_validate($elements, &$for // checkboxes, can return a valid value of '0'. Instead, check the // length if it's a string, and the item count if it's an array. if ($elements['#required'] && (!count($elements['#value']) || (is_string($elements['#value']) && strlen(trim($elements['#value'])) == 0))) { - form_error($elements, $t('!name field is required.', array('!name' => $elements['#title']))); + form_error($elements, $t('!name field is required.', array( + '!field_id' => '#' . $elements['#id'], + '!name' => $elements['#title'], + ))); } // Verify that the value is not longer than #maxlength.