You are here

function relation_entity_collector_entity_load in Relation 8

Same name and namespace in other branches
  1. 8.2 relation_entity_collector/relation_entity_collector.module \relation_entity_collector_entity_load()
  2. 7 relation_entity_collector/relation_entity_collector.module \relation_entity_collector_entity_load()

Implements hook_entity_load().

File

relation_entity_collector/relation_entity_collector.module, line 46
Relation Entity Collector Block.

Code

function relation_entity_collector_entity_load($entities, $type) {
  $entities_store =& drupal_static('relation_entities', array());
  $entities_store += array(
    $type => array(),
  );
  $entities_store[$type] += $entities;
}