imageinfo_cache.install in Imageinfo Cache 6
Same filename and directory in other branches
File
imageinfo_cache.installView source
<?php
/**
* Implementation of hook_install().
*/
function imageinfo_cache_install() {
drupal_install_schema('imageinfo_cache');
variable_set('imageinfo_cache_url_key', mt_rand());
}
/**
* Implementation of hook_schema().
*/
function imageinfo_cache_schema() {
$schema['cache_imageinfo'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_imageinfo']['description'] = t('Cache table for Imageinfo Cache module.');
return $schema;
}
/**
* Implementation of hook_uninstall().
*/
function imageinfo_cache_uninstall() {
drupal_uninstall_schema('imageinfo_cache');
variable_del('imageinfo_cache_url_key');
variable_del('imageinfo_cache_lifetime');
variable_del('imageinfo_cache_socket_timeout');
variable_del('imageinfo_cache_theme_callback');
variable_del('imageinfo_cache_theme_imagecache_callback');
variable_del('imageinfo_cache_theme_imagefield_image_callback');
}
Functions
Name![]() |
Description |
---|---|
imageinfo_cache_install | Implementation of hook_install(). |
imageinfo_cache_schema | Implementation of hook_schema(). |
imageinfo_cache_uninstall | Implementation of hook_uninstall(). |