You are here

function imagecache_canvasactions_imagecache_actions in ImageCache Actions 6.2

Same name and namespace in other branches
  1. 5.3 imagecache_canvasactions.module \imagecache_canvasactions_imagecache_actions()
  2. 5.2 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

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

Code

function imagecache_canvasactions_imagecache_actions() {
  $util_dir = drupal_get_path('module', '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_imagemask' => array(
      'name' => t('Image mask'),
      'description' => t(' Choose the file image you wish to use as a mask, and apply it to the canvas.'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_file2canvas' => array(
      'name' => t('Overlay (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 (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_source2canvas' => array(
      'name' => t('Overlay: source image to canvas'),
      'description' => t('Places the source image onto the canvas for compositing.'),
      'file' => 'canvasactions.inc',
    ),
    'canvasactions_roundedcorners' => array(
      'name' => t('Rounded Corners'),
      'description' => t(' This is true cropping, not overlays, so the result <em>can</em> be transparent.'),
      'file' => 'rounded_corners.inc',
    ),
    'canvasactions_aspect' => array(
      'name' => t('Aspect switcher: Switch between portrait and landscape.'),
      'description' => t(' Use different effects depending on whether the image is landscape of portrait shaped. This re-uses other preset definitions, and just chooses between them based on the rule.'),
      'file' => 'canvasactions.inc',
    ),
  );
  return $actions;
}