You are here

function image_replace_image_effect_info in Image Replace 7

Implements hook_image_effect_info().

File

./image_replace.module, line 214
Provides an image style effect replacing the whole image with another one.

Code

function image_replace_image_effect_info() {
  $effects = array();

  // The array is keyed on the machine-readable effect name.
  $effects['image_replace'] = array(
    'label' => t('Replace image'),
    'help' => t('Swap the original image if a replacement image was configured.'),
    'effect callback' => 'image_replace_effect',
    'dimensions passthrough' => TRUE,
  );
  return $effects;
}