Hello,
As must as I hate to do this, but I had to change profile.module in core.
The "selection" field type now supports "value|desc" options, entered in the big TEXTAREA.
Help text was modified, admin module was updated and the view pulls out "desc" instead of "value".
Two patches are attached.
--
Regards,
Noor Dawod (noor@comrax.com)
| Comment | File | Size | Author |
|---|---|---|---|
| profile.module.patch | 1.34 KB | comrax | |
| profile.admin_.inc_.patch | 730 bytes | comrax |
Comments
Comment #1
wretched sinner - saved by grace commentedFeatures go into HEAD. It would be nice to have this option backported, but is unliekly to happen.
Worthwhile having I think for all selection lists in Drupal? Thoughts?
Comment #2
comrax commentedFor all selection lists? Hmm.. I can only think of marrying CCK with Users..
Comment #3
karens commentedSomething like this is already in Fields in Core. It won't be available as a replacement for the Profile module until there is a UI in core, but the underlying functionality is there and it can be used with CCK's UI. It's done with a new field type called a 'List' field. I don't image there is any point in making other changes to Profile module or other core field until we make the ultimate change of reworking all the core fields to use the new Fields API.
Comment #4
sreynen commentedUser profiles use fields in core now, which I believe resolves this issue.