You are here

function _webform_options_info in Webform 6.3

Same name and namespace in other branches
  1. 7.4 includes/webform.options.inc \_webform_options_info()
  2. 7.3 includes/webform.options.inc \_webform_options_info()

Private implementation of hook_webform_select_options_info().

See also

webform_webform_select_options_info()

1 call to _webform_options_info()
webform_webform_select_options_info in ./webform.module
Implements hook_webform_select_options_info().

File

includes/webform.options.inc, line 13
A collection of built-in select list options for Webform.

Code

function _webform_options_info() {
  $items = array();
  $items['days'] = array(
    'title' => t('Days of the week'),
    'options callback' => 'webform_options_days',
    'file' => 'includes/webform.options.inc',
  );
  if (function_exists('countries_api_get_array')) {
    $items['countries'] = array(
      'title' => t('Countries'),
      'options callback' => 'webform_options_countries',
      'file' => 'includes/webform.options.inc',
    );
  }
  $items['united_states'] = array(
    'title' => t('US states'),
    'options callback' => 'webform_options_united_states',
    'file' => 'includes/webform.options.inc',
  );
  return $items;
}