eck_entitycache.install in Entity Construction Kit (ECK) 7.2
Same filename and directory in other branches
Install functions for the ECK Entity cache module.
File
modules/eck_entitycache/eck_entitycache.installView 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
Name | Description |
---|---|
eck_entitycache_schema | Implements hook_schema(). |