5 * Hooks provided by the ImageCache module.
14 * Inform ImageCache about actions that can be performed on an image.
17 * An array of information on the actions implemented by a module. The array
18 * contains a sub-array for each action node type, with the machine-readable
19 * action name as the key. Each sub-array has up to 3 attributes. Possible
21 * "name": the human-readable name of the action. Required.
22 * "description": a brief description of the action. Required.
23 * "file": the name of the include file the action can be found
24 * in relative to the implementing module's path.
26 function hook_imagecache_actions() {
28 'imagecache_resize' => array(
30 'description' => 'Resize an image to an exact set of dimensions, ignoring aspect ratio.',
36 * Provides default ImageCache presets that can be overridden by site
40 * An array of imagecache preset definitions. Each definition can be
41 * generated by exporting a preset from the database. Each preset
42 * definition should be keyed on its presetname (for easier interaction
43 * with drupal_alter) and have the following attributes:
44 * "presetname": the imagecache preset name. Required.
45 * "actions": an array of action defintions for this preset. Required.
47 function hook_imagecache_default_presets() {
49 $presets['thumbnail'] = array (
50 'presetname' => 'thumbnail',
54 'module' => 'imagecache',
55 'action' => 'imagecache_scale_and_crop',