You are here

function imagecache_canvasactions_imagecache_actions in ImageCache Actions 5.2

Same name and namespace in other branches
  1. 5.3 imagecache_canvasactions.module \imagecache_canvasactions_imagecache_actions()
  2. 6.2 canvasactions/imagecache_canvasactions.module \imagecache_canvasactions_imagecache_actions()
  3. 6 imagecache_canvasactions.module \imagecache_canvasactions_imagecache_actions()

Implementation of hook_imagecache_actions().

Declare available actions, return help text about this filter.

These funcs are all in their respective include libraries - as configured below

File

./imagecache_canvasactions.module, line 54
A collection of canvas (layer) type manipulations for imagecache - including "Watermark"

Code

function imagecache_canvasactions_imagecache_actions() {
  $actions = array(
    'canvasactions_definecanvas' => array(
      'name' => t('Define Canvas'),
      'description' => t('Define the size of the working canvas and background color, this controls the dimensions of the output image..'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_source2canvas' => array(
      'name' => t('Overlay: source image to canvas'),
      'description' => t('Places the source image onto the canvas for compositing.'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_file2canvas' => array(
      'name' => t('Overlay: file image to canvas (watermark)'),
      'description' => t(' Choose the file image you wish to use as an overlay, and position it in a layer on top of the canvas.'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_canvas2file' => array(
      'name' => t('Underlay: place a file image under the current image (background)'),
      'description' => t(' Choose the file image you wish to use as an background, and position the processed image on it.'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_roundedcorners' => array(
      'name' => t('Rounded Corners (individually configurable)'),
      'description' => t(' This is true cropping, not overlays, so the result <em>can</em> be transparent.'),
      'file' => 'canvasactions.inc',
    ),
  );
  return $actions;
}