You are here

function entity_entity_property_info_alter in Entity API 7

Implements hook_entity_property_info_alter().

File

./entity.info.inc, line 42
Provides basic entity property info for entities provided via the CRUD API, as well as property info for all entity types defined by core. For that the respective modules/MODULE.info.inc files are included.

Code

function entity_entity_property_info_alter(&$entity_info) {

  // Add in info for all core entities.
  foreach (_entity_metadata_core_modules() as $module) {
    module_load_include('inc', 'entity', "modules/{$module}.info");
    if (function_exists($function = "entity_metadata_{$module}_entity_property_info_alter")) {
      $function($entity_info);
    }
  }
}