You are here

function imagecache_customactions_image_effect_info in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 customactions/imagecache_customactions.module \imagecache_customactions_image_effect_info()

Implements hook_image_effect_info().

Defines information about the supported effects.

File

customactions/imagecache_customactions.module, line 25
Allows advanced users to code their own PHP image manipulation routines as part of image style processing.

Code

function imagecache_customactions_image_effect_info() {
  $effects = array();
  $effects['imagecache_customactions'] = array(
    'label' => t('Custom action'),
    'help' => t('Runs custom PHP code.'),
    'effect callback' => 'imagecache_customactions_effect',
    'dimensions callback' => 'imagecache_customactions_dimensions',
    'form callback' => 'imagecache_customactions_form',
    'summary theme' => 'imagecache_customactions_summary',
  );
  $effects['imagecache_subroutine'] = array(
    'label' => t('Subroutine'),
    'help' => t('Runs another defined preset on the image.'),
    'effect callback' => 'imagecache_subroutine_effect',
    'dimensions callback' => 'imagecache_subroutine_dimensions',
    'form callback' => 'imagecache_subroutine_form',
    'summary theme' => 'imagecache_subroutine_summary',
  );
  return $effects;
}