Community Documentation

Creating custom ImageCache actions...

Last updated August 1, 2008. Created by dopry on August 1, 2008.
Log in to edit this page.

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');
}

?>

About this page

Drupal version
Drupal 5.x, Drupal 6.x

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here