Posted by Alex Reisner on December 5, 2005 at 5:05pm
2 followers
Jump to:
| Project: | Drupal core |
| Version: | x.y.z |
| Component: | base system |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
This patch automatically sets the #title of a field if it has been omitted by the programmer. It uses the field's name with underscores replaced by spaces and the first letter capitalized.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| form.inc.autotitle.patch | 664 bytes | Ignored: Check issue status. | None | None |
Comments
#1
-1, because fields without titles exist and are explicitly catered to (see theme_form_element).
Regardless, it's not a good idea. The titles would not be localized, and would not be user-friendly. Variable names and UI labels are two completely different things.
Finally, ucfirst() is not unicode safe. Use the unicode.inc version.