You are here

function _countries_element_info in Countries 7.2

Same name and namespace in other branches
  1. 8 countries.elements.inc \_countries_element_info()

Actual implementation hook_element_info().

See also

countries_element_info()

1 call to _countries_element_info()
countries_element_info in ./countries.module
Implements hook_element_info().

File

./countries.elements.inc, line 17
Defines all element related code for the countries module.

Code

function _countries_element_info() {
  $type['country'] = array(
    '#input' => TRUE,
    '#size' => 0,
    '#multiple' => FALSE,
    '#process' => array(
      'countries_country_expand',
      'form_process_select',
      'ajax_process_form',
    ),
    '#element_validate' => array(
      'countries_country_element_validate',
    ),
    '#theme' => 'select',
    '#theme_wrappers' => array(
      'form_element',
    ),
    // Filter based on enabled flag or continents to filter the options.
    // See countries_filter() for details.
    '#filters' => array(),
    // If empty, the default list is the system country list, which is the
    // list of all enabled countries, which runs through hook_countries_alter().
    // Otherwise, the module runs it's own country list based on the filters.
    '#options' => array(),
  );
  return $type;
}