function node_field_get_options_field_options in Node Field 7.2
Parse field options of field and return them as array.
6 calls to node_field_get_options_field_options()
- node_field_radio_formatter in includes/
node_field.field.inc - Formatter for radio field.
- node_field_radio_widget in includes/
node_field.field.inc - Widget for radio field.
- node_field_select_formatter in includes/
node_field.field.inc - Formatter for select field.
- node_field_select_or_other_formatter in includes/
node_field.field.inc - Formatter for select_or_other field.
- node_field_select_or_other_widget in includes/
node_field.field.inc - Widget for select_or_other field.
File
- includes/
node_field.field.inc, line 555 - Field types, settings, widget and formatters.
Code
function node_field_get_options_field_options($node_field) {
$options = [];
if (isset($node_field['settings']['options'])) {
$options = list_extract_allowed_values($node_field['settings']['options'], 'list_text', TRUE);
}
return $options;
}