Skip to content
Commit 650d9de9 authored by Darrel O'Pry's avatar Darrel O'Pry
Browse files

#141370 by gordon, dman, eaton, dopry. Move image actions into new hook_imagecache_action()

patch from comment #15 applied with heavy modification...

to implement an action your module need to implement hook_imagecache_actions (see php doc in
imagecache implementation).

actions can exist inside your module or in an external include
in the same directory as the implementing module.

there are two call backs for each action implemented...
$action['action'] .'_form($data)' -- preset form....
$action['action'] .'_image($image, $data)' -- this callback does the work...
parent b7c5115b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment