Creating custom ImageCache actions...
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
You need to look at imagecache.module as an example.
You need to implement hook_imagecache_actions in your module.
The action data is cached so you should make sure you have the following in your install file..
<?php
function hook_enable() {
cache_clear_all('imagecache_actions', 'cache');
}
function hook_disable() {
cache_clear_all('imagecache_actions', 'cache');
}
?>
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion