function imagecache_canvasactions_install in ImageCache Actions 6
Same name and namespace in other branches
- 5.3 imagecache_canvasactions.install \imagecache_canvasactions_install()
- 5.2 imagecache_canvasactions.install \imagecache_canvasactions_install()
- 6.2 canvasactions/imagecache_canvasactions.install \imagecache_canvasactions_install()
Need to flush the cache when this module is enabled or disabled
File
- ./
imagecache_canvasactions.install, line 9 - Set up new canvas actions. Tell imagecache.module about them
Code
function imagecache_canvasactions_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'),
)));
}