The problem
Since the field settings for allowed values is specified by a allowed_values_function this means that I can't go in field settings and specify some other key|value options to be available in this field.
This is what in the UI of the field settings is written:
Allowed values list
The value of this field is being determined by the
message_subscribe_email_frequency_allowed_valuesfunction and may not be changed.
The module message_digest clearly states that you can add as many intervals as you want.
If you'd like to use a different interval than "day" or "week", doing so is as easy as creating a new plugin with a custom interval.
The solution
Add a drupal_alter to the function that is responsible for allowed values in the field, so anyone can add as many options as he desires.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | message_subscribe_email_frequency-2885612-2.patch | 449 bytes | sergiuteaca |
Comments
Comment #2
sergiuteaca commentedHere is the proposed patch
Comment #4
anemirovsky commentedThanks for the patch! Fixed. I'll release a new version shortly with this and another issue fixed.