You are here

function countries_entity_property_info_alter in Countries 8

Same name and namespace in other branches
  1. 7.2 countries.info.inc \countries_entity_property_info_alter()

Implements hook_entity_property_info_alter().

Add Continent name property.

File

./countries.info.inc, line 8

Code

function countries_entity_property_info_alter(&$info) {
  $info['country']['properties']['continent_name'] = array(
    'label' => t('Continent name'),
    'type' => 'text',
    'getter callback' => 'countries_get_properties',
  );
}