function registration_update_7102 in Entity Registration 8
Same name and namespace in other branches
- 7.2 registration.install \registration_update_7102()
- 7 registration.install \registration_update_7102()
Create cache bins for Entity-cache module.
File
- ./
registration.install, line 475 - Schema and installation hooks for registration module.
Code
function registration_update_7102(&$sandbox) {
// Create cache bins for Entity-cache module.
$cache_schema = drupal_get_schema_unprocessed('system', 'cache');
$types = array(
'registration',
'registration_type',
'registration_state',
);
foreach ($types as $type) {
$schema["cache_entity_{$type}"] = $cache_schema;
$schema["cache_entity_{$type}"]['description'] = "Cache table used to store {$type} entity records.";
db_create_table("cache_entity_{$type}", $schema["cache_entity_{$type}"]);
}
}