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_values function 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.

Comments

sergiuteaca created an issue. See original summary.

sergiuteaca’s picture

Status: Active » Needs review
StatusFileSize
new449 bytes

Here is the proposed patch

anemirovsky’s picture

Status: Needs review » Fixed

Thanks for the patch! Fixed. I'll release a new version shortly with this and another issue fixed.

Status: Fixed » Closed (fixed)

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