You are here

function _webform_select_options in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/select.inc \_webform_select_options()
  2. 6.3 components/select.inc \_webform_select_options()
  3. 6.2 components/select.inc \_webform_select_options()
  4. 7.4 components/select.inc \_webform_select_options()

Generate a list of options for a select list.

10 calls to _webform_select_options()
webform_select_options_ajax in components/select.inc
Menu callback; Return a predefined list of select options as JSON.
_webform_analysis_select in components/select.inc
Implements _webform_analysis_component().
_webform_csv_data_component in ./webform.api.php
Format the submitted data of a component for CSV downloading.
_webform_csv_data_select in components/select.inc
Implements _webform_csv_data_component().
_webform_csv_headers_select in components/select.inc
Implements _webform_csv_headers_component().

... See full list

File

components/select.inc, line 767
Webform module multiple select component.

Code

function _webform_select_options($component, $flat = FALSE, $filter = TRUE) {
  if ($component['extra']['options_source']) {
    $options = _webform_select_options_callback($component['extra']['options_source'], $component, $flat, $filter);
  }
  else {
    $options = _webform_select_options_from_text($component['extra']['items'], $flat, $filter);
  }
  return isset($options) ? $options : array();
}