You are here

countries.info.inc in Countries 8

Same filename and directory in other branches
  1. 7.2 countries.info.inc

File

countries.info.inc
View source
<?php

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

Functions

Namesort descending Description
countries_entity_property_info_alter Implements hook_entity_property_info_alter().