Defines selection, check box and radio button widgets for text and numeric fields.

File

core/modules/field/modules/options/options.module

Functions

Namesort descending Description
form_options_expand Expand the "options" form element type.
form_options_from_text Create an array representation of text option values.
form_options_to_text Create a textual representation of options from an array.
form_options_validate Validate the "options" form element type.
form_type_options_value This function adjusts the value of the element from a text value to an array.
options_array_flatten Flattens an array of allowed values.
options_array_transpose Manipulates a 2D array to reverse rows and columns.
options_element_info Implements hook_element_info().
options_field_instance_settings_validate Form #validate callback for field_ui_field_edit_form().
options_field_settings_after_build Element #after_build callback for the options list in Field UI.
options_field_settings_validate Form #validate callback for Field UI forms that use an options element.
options_field_widget_error Implements hook_field_widget_error().
options_field_widget_form Implements hook_field_widget_form().
options_field_widget_info Implements hook_field_widget_info().
options_field_widget_settings_form Implements hook_field_widget_settings_form().
options_field_widget_validate Form element validation handler for options element.
options_library_info Implements hook_library_info().
options_theme Implements hook_theme().
_options_form_to_storage Transforms submitted form values into field storage format.
_options_get_options Collects the options for a field.
_options_prepare_options Sanitizes the options.
_options_properties Describes the preparation steps required by each widget.
_options_storage_to_form Transforms stored field values into the format the widgets need.