imagecache_customactions.install in ImageCache Actions 6.2
Same filename and directory in other branches
Set up new custom actions. Tell imagecache.module about them
File
customactions/imagecache_customactions.installView source
<?php
/**
* @file Set up new custom actions. Tell imagecache.module about them
*/
/**
* Need to flush the cache when this module is enabled or disabled
*/
function imagecache_customactions_install() {
if (function_exists('imagecache_action_definitions')) {
imagecache_action_definitions(TRUE);
}
cache_clear_all('imagecache_actions', 'cache');
drupal_set_message(t('Additional imagecache actions should now be available in the presets !settings_link', array(
'!settings_link' => l(t('settings'), 'admin/build/imagecache'),
)));
}
/**
* hook_uninstall
*/
function imagecache_customactions_uninstall() {
if (function_exists('imagecache_action_definitions')) {
imagecache_action_definitions(TRUE);
}
cache_clear_all('imagecache_actions', 'cache');
}
Functions
Name | Description |
---|---|
imagecache_customactions_install | Need to flush the cache when this module is enabled or disabled |
imagecache_customactions_uninstall | hook_uninstall |