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