function entitycache_schema in Entity cache 7
Implements hook_schema().
File
- ./
entitycache.install, line 11 - Schema and install hooks for the entitycache module.
Code
function entitycache_schema() {
$schema = array();
// Load the .module file rather than declare this function twice.
drupal_load('module', 'entitycache');
$entities = array_keys(entitycache_supported_core_entities());
$cache_schema = drupal_get_schema_unprocessed('system', 'cache');
foreach ($entities as $type) {
$schema["cache_entity_{$type}"] = $cache_schema;
$schema["cache_entity_{$type}"]['description'] = "Cache table used to store {$type} entity records.";
}
return $schema;
}