You are here

function _imagecache_apply_action in ImageCache 5.2

Same name and namespace in other branches
  1. 6.2 imagecache.module \_imagecache_apply_action()
1 call to _imagecache_apply_action()
imagecache_build_derivative in ./imagecache.module
build an image cache derivative

File

./imagecache.module, line 377
Dynamic image resizer and image cacher.

Code

function _imagecache_apply_action($action, &$image) {
  $actions = imagecache_action_definitions();
  if ($definition = imagecache_action_definition($action['action'])) {
    return call_user_func($action['action'] . '_image', $image, $action['data']);
  }

  // skip undefined actions.. module probably got uninstalled or disabled.
  watchdog('imagecache', t('non-existant action %action', array(
    '%action' => $action['action'],
  )), WATCHDOG_NOTICE);
  return true;
}