optionwidgets_options uses a hook to determine the allowed fields for a specific field. This is a bit limiting in special occassions. Could we get a drupal_alter('optionwidgets_options') in addition to this?

CommentFileSizeAuthor
#1 optionswidgets.patch371 bytesgerhard killesreiter

Comments

gerhard killesreiter’s picture

StatusFileSize
new371 bytes

Something like this.

gerhard killesreiter’s picture

Status: Active » Needs review

changing status

markus_petrux’s picture

I'm not sure whether it is viable at this point in time such an extension to OW... but, there's an alternative approach:

In the field settings panel, for the allowed values settings you can use a small PHP snippet, or invoke a function implemented somewhere else. You can pass arguments to this function. This option is per field instance.

Also, you might want to check out these:

http://drupal.org/project/option_trim (D5 + D6)
http://drupal.org/project/preset_widget_options (D5)