You are here

function entity_share_entity_load in Entity Share 7

Implements hook_entity_load().

File

./entity_share.module, line 11
Entity Share .module file.

Code

function entity_share_entity_load($entities, $type) {

  // Add the entity_type as a property of all entities.
  foreach ($entities as $entity) {
    $entity->entity_type = $type;
  }
}