You are here

entity_share.module in Entity Share 7

Entity Share .module file.

File

entity_share.module
View source
<?php

/**
 * @file
 * Entity Share .module file.
 */

/**
 * Implements hook_entity_load().
 */
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;
  }
}

Functions

Namesort descending Description
entity_share_entity_load Implements hook_entity_load().