You are here

function hook_imagecache_actions in ImageCache 6.2

Inform ImageCache about actions that can be performed on an image.

Return value

array An array of information on the actions implemented by a module. The array contains a sub-array for each action node type, with the machine-readable action name as the key. Each sub-array has up to 3 attributes. Possible attributes: "name": the human-readable name of the action. Required. "description": a brief description of the action. Required. "file": the name of the include file the action can be found in relative to the implementing module's path.

1 function implements hook_imagecache_actions()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

imagecache_imagecache_actions in ./imagecache.module
Implementation of hook_imagecache_actions.
1 invocation of hook_imagecache_actions()
imagecache_action_definitions in ./imagecache.module
Pull in actions exposed by other modules using hook_imagecache_actions().

File

./imagecache.api.php, line 26
Hooks provided by the ImageCache module.

Code

function hook_imagecache_actions() {
  $actions = array(
    'imagecache_resize' => array(
      'name' => 'Resize',
      'description' => 'Resize an image to an exact set of dimensions, ignoring aspect ratio.',
    ),
  );
  return $actions;
}