Skip to main content
added link to the documentation page (comment edited Aug 28, 2017 at 6:38)
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

You're deep in the field definitions there, that's the wrong place, you can't change anything there and you don't need to.

In case of a select, the available options are already part of the form, itform; they should be in $form[$field_name]['widget']...$form[$field_name]['widget'] somewhere.

You
You could also try to use hook_options_list_alter()hook_options_list_alter().

You're deep in the field definitions there, that's the wrong place, you can't change anything there and you don't need to.

In case of a select, the available options are already part of the form, it should be in $form[$field_name]['widget']... somewhere.

You could also try to use hook_options_list_alter()

You're deep in the field definitions there, that's the wrong place, you can't change anything there and you don't need to.

In case of a select, the available options are already part of the form; they should be in $form[$field_name]['widget'] somewhere.
You could also try to use hook_options_list_alter().

Source Link
Berdir
  • 83.5k
  • 6
  • 161
  • 207

You're deep in the field definitions there, that's the wrong place, you can't change anything there and you don't need to.

In case of a select, the available options are already part of the form, it should be in $form[$field_name]['widget']... somewhere.

You could also try to use hook_options_list_alter()