Home » Database » DB_DataObject_FormBuilder » Bug #5172
getFieldLabel Improvement?
Details
| Request #5172 | getFieldLabel Improvement? |
|---|---|
| Submitted | 2005-08-22 03:16 UTC |
| From | dsanders at baselinesolutions dot com dot au |
| Assigned | justinpatrin |
| Status | Closed |
| Package | DB_DataObject_FormBuilder |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-08-22 03:16 UTC] dsanders at baselinesolutions dot com dot au
Description:
------------
Instead of doing a ucfirst on the field label in getFieldLabel(), would it be possible to convert underscores to spaces then do a ucwords? Or to even provide the ability to pass in a callback to allow custom field name conversions? I know your answer may be "... just use fb_fieldLabels", but on large tables quite often I manually convert field names like "customer_name" to "Customer Name".
(This would make FormBuilder just that little bit more helpful! ;)