function country_field_field_info in Country Field 7
Implements hook_field_info().
File
- ./
country_field.module, line 10 - Contains field hook implementations for a country select field.
Code
function country_field_field_info() {
return array(
'country' => array(
'label' => t('Country'),
'description' => t("This field allows you to select a country."),
'settings' => array(
'allowed_values' => array(),
'allowed_values_function' => 'country_field_countries',
),
'instance_settings' => array(
'countries' => array(),
),
'default_widget' => 'options_select',
'default_formatter' => 'list_default',
),
);
}