function imageinfo_cache_update_7101 in Imageinfo Cache 7.3
Implements hook_update_N().
Create the cache_imageinfo cache bin.
File
- ./
imageinfo_cache.install, line 34 - Handles Imageinfo Cache installation and upgrade tasks.
Code
function imageinfo_cache_update_7101() {
if (db_table_exists('cache_imageinfo')) {
return;
}
// Define cache table.
$schema = array();
$schema['cache_imageinfo'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_imageinfo']['description'] = 'Cache table for Imageinfo Cache. Used to cache information contained in image_get_info().';
// Create cache table.
db_create_table('cache_imageinfo', $schema['cache_imageinfo']);
}