function og_update_7204 in Organic groups 7.2
Create cache bins for Entity-cache module.
File
- ./
og.install, line 1170 - Install, update, and uninstall functions for the Organic groups module.
Code
function og_update_7204() {
$cache_schema = drupal_get_schema_unprocessed('system', 'cache');
$types = array(
'og_membership_type',
'og_membership',
);
foreach ($types as $type) {
$schema["cache_entity_{$type}"] = $cache_schema;
$schema["cache_entity_{$type}"]['description'] = "Cache table used to store {$type} entity records.";
}
foreach ($schema as $name => $table) {
db_create_table($name, $table);
}
}