You are here

function imagecache_action_info in ImageCache 6.2

Implementation of hook_action_info().

Note: These are actions in the Drupal core trigger.module sense, not ImageCache actions.

File

./imagecache.module, line 1201
Dynamic image resizer and image cacher.

Code

function imagecache_action_info() {
  $actions = array();
  if (module_exists('filefield')) {
    $actions['imagecache_flush_action'] = array(
      'type' => 'node',
      'description' => t("ImageCache: Flush ALL presets for this node's filefield images"),
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'presave',
          'delete',
          'insert',
          'update',
        ),
      ),
    );
    $actions['imagecache_generate_all_action'] = array(
      'type' => 'node',
      'description' => t("ImageCache: Generate ALL presets for this node's filefield images"),
      'configurable' => FALSE,
      'hooks' => array(
        'nodeapi' => array(
          'presave',
          'insert',
          'update',
        ),
      ),
    );
    $actions['imagecache_generate_action'] = array(
      'type' => 'node',
      'description' => t("ImageCache: Generate configured preset(s) for this node's filefield images"),
      'configurable' => TRUE,
      'hooks' => array(
        'nodeapi' => array(
          'presave',
          'insert',
          'update',
        ),
      ),
    );
  }
  return $actions;
}