function countries_field_info in Countries 8
Same name and namespace in other branches
- 7.2 countries.fields.inc \countries_field_info()
- 7 countries.module \countries_field_info()
Implements hook_field_info().
File
- ./
countries.fields.inc, line 11 - All field related code.
Code
function countries_field_info() {
return array(
'country' => array(
'label' => t('Country'),
'description' => t('This field stores a country reference in the database.'),
'settings' => array(
'countries' => array(),
'continents' => array(),
'enabled' => COUNTRIES_ENABLED,
'size' => 5,
),
'default_widget' => 'options_select',
'default_formatter' => 'country_default',
// Support hook_entity_property_info() from contrib "Entity API".
'property_type' => 'country',
'property_callbacks' => array(
'countries_entity_metadata_field_property_callback',
),
),
);
}