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)

CommentFileSizeAuthor
profile.module.patch1.34 KBcomrax
profile.admin_.inc_.patch730 bytescomrax

Comments

wretched sinner - saved by grace’s picture

Version: 6.x-dev » 7.x-dev
Component: profile.module » base system

Features 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?

comrax’s picture

For all selection lists? Hmm.. I can only think of marrying CCK with Users..

karens’s picture

Something 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.

sreynen’s picture

Status: Active » Fixed

User profiles use fields in core now, which I believe resolves this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.