You are here

function display_cache_entity_info_alter in Display Cache 7

Implements hook_entity_info_alter().

File

./display_cache.module, line 366
Module file for Display Cache.

Code

function display_cache_entity_info_alter(&$entity_info) {
  foreach ($entity_info as &$entity) {

    // Replace view callback with own callback display_cache_view_entity().
    if (isset($entity['view callback'])) {
      $entity['entity view callback'] = $entity['view callback'];
    }
    $entity['view callback'] = 'display_cache_view_entity';
  }
}