Any field set as required will not render the required mark (red asterisk) if the field has no title set. This is most commonly visible on checkboxes where the title is placed together with the field.
The attached patch should fix it. I didn't find any form where it brought a negative impact.
Regards,
FredCK
PS:. I've just checked that the fixed function (theme_form_element) has been moved from theme.inc to form.inc in the CVS, so the fix must be applied there.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | form.inc_20070504.patch | 1.98 KB | stevenpatz |
| #2 | theme_form_element.txt | 883 bytes | FredCK |
| theme.inc_6.diff | 558 bytes | FredCK |
Comments
Comment #1
drummPlease provide a patch for CVS and form.inc.
Comment #2
FredCK commentedWell... it was not that difficult with make the changes based on the diff.
I don't work with the CVS, so here (attached) is the patched code for the theme_form_element function, based on version 4.7.3.
Comment #3
FredCK commentedComment #4
killes@www.drop.org commentedthat's not a patch, see drupal.org/diffandpatch
Comment #5
FredCK commentedOk... here is the code:
Comment #6
magico commentedConfirmed at theme_form_element() in form.inc
Comment #7
stevenpatzis this still an issue? Here's a patch of the code supplied in the previous comment.
Comment #8
catchhttp://drupal.org/node/114091 was duplicate.
This still applies with a bit of offset.
Comment #9
Anonymous (not verified) commentedIs this still an issue?
Can this be moved into testing, after review?
Comment #10
Anonymous (not verified) commentedNo response, patch is from 2007, closing.