You are here

function countries_field_widget_info in Countries 7

Same name and namespace in other branches
  1. 8 countries.fields.inc \countries_field_widget_info()
  2. 7.2 countries.fields.inc \countries_field_widget_info()

Implement hook_field_widget_info().

File

./countries.module, line 495

Code

function countries_field_widget_info() {
  return array(
    'country_select' => array(
      'label' => t('Country select list'),
      'field types' => array(
        'country',
      ),
      'settings' => array(
        'continents' => array(),
        'enabled' => COUNTRIES_ENABLED,
        'size' => 5,
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
      ),
    ),
  );
}