You are here

function countries_core_properties in Countries 7.2

Same name and namespace in other branches
  1. 8 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.

10 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().

... See full list

File

./countries.module, line 731
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;
}