You are here

function list_predefined_options_list_option_info in List field predefined options 7

Implements hook_list_option_info().

File

./list_predefined_options.module, line 91

Code

function list_predefined_options_list_option_info() {
  $info['us_states'] = array(
    'label' => t('US states'),
    'callback' => 'list_predefined_options_list_option_us_states',
  );
  $info['countries'] = array(
    'label' => t('Countries'),
    'callback' => 'list_predefined_options_list_option_countries',
  );
  $info['timezones'] = array(
    'label' => t('Time zones'),
    'callback' => 'list_predefined_options_list_option_timezones',
  );
  $info['languages'] = array(
    'label' => t('Languages (all)'),
    'callback' => 'list_predefined_options_list_option_languages',
  );
  if (module_exists('locale')) {
    $info['locale_languages'] = array(
      'label' => t('Languages (enabled)'),
      'callback' => 'list_predefined_options_list_option_languages_enabled',
    );
  }

  // @todo Add support for the webform options
  return $info;
}