function countries_core_properties in Countries 8
Same name and namespace in other branches
- 7.2 countries.module \countries_core_properties()
Helper function to list the core properties of a country entity.
Return value
array An array of strings indexed by the country schema keys.
12 calls to countries_core_properties()
- CountriesCRUDUIUnitTest::testISO2Conflict in tests/
countries.test - Special case where the ISO matches an existing ISO code.
- countries_feeds_processor_targets_alter in ./
countries.feeds.inc - Implements hook_feeds_processor_targets_alter().
- countries_field_extra_fields in ./
countries.module - Implements hook_field_extra_fields().
- countries_field_formatter_settings_form in ./
countries.fields.inc - Implements hook_field_formatter_settings_form().
- countries_field_formatter_settings_summary in ./
countries.fields.inc - Implements hook_field_formatter_settings_summary().
File
- ./
countries.module, line 709 - Defines the field and entity information for countries.
Code
function countries_core_properties() {
$core_properties = NULL;
if (!isset($core_properties)) {
$core_properties = array(
'name' => t('Name'),
'official_name' => t('Official name'),
'enabled' => t('Status'),
'iso2' => t('ISO alpha-2 code'),
'iso3' => t('ISO alpha-3 code'),
'numcode' => t('ISO numeric-3 code'),
'continent' => t('Continent'),
);
}
return $core_properties;
}