You are here

function imagecache_subroutine_image in ImageCache Actions 6.2

Actually invoke the action - which means just handing off to the named real preset to do the job.

Implementation of hook_image()

Parameters

$image:

$action:

File

customactions/imagecache_customactions.module, line 208
Allow advanced users to code their own PHP image manipulation routines as part of imagecache processing.

Code

function imagecache_subroutine_image(&$image, $data) {
  if ($preset = imagecache_preset_by_name($data['subroutine_presetname'])) {
    foreach ($preset['actions'] as $sub_action) {
      _imagecache_apply_action($sub_action, $image);
    }
  }
  return TRUE;
}