You are here

eck_entitycache.install in Entity Construction Kit (ECK) 7.2

Same filename and directory in other branches
  1. 7.3 modules/eck_entitycache/eck_entitycache.install

Install functions for the ECK Entity cache module.

File

modules/eck_entitycache/eck_entitycache.install
View source
<?php

/**
 * @file
 * Install functions for the ECK Entity cache module.
 */

/**
 * Implements hook_schema().
 */
function eck_entitycache_schema() {
  $schema = array();
  $cache_schema = drupal_get_schema_unprocessed('system', 'cache');
  foreach (EntityType::loadAll() as $entity_type) {
    $schema["cache_entity_{$entity_type->name}"] = $cache_schema;
    $schema["cache_entity_{$entity_type->name}"]['description'] = "Cache table used to store {$entity_type->name} entity records.";
  }
  return $schema;
}

Functions

Namesort descending Description
eck_entitycache_schema Implements hook_schema().