You are here

function imagecache_action_definition in ImageCache 5.2

Same name and namespace in other branches
  1. 6.2 imagecache.module \imagecache_action_definition()
5 calls to imagecache_action_definition()
imagecache_action in ./imagecache.module
imagecache_ui_action_add_form in ./imagecache_ui.module
imagecache_ui_menu in ./imagecache_ui.module
imagecache_ui_preset_form in ./imagecache_ui.module
_imagecache_apply_action in ./imagecache.module

File

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

Code

function imagecache_action_definition($action) {
  static $definition_cache;
  if (!isset($definition_cache[$action])) {
    $definitions = imagecache_action_definitions();
    $definition = isset($definitions[$action]) ? $definitions[$action] : array();
    if ($definition && $definition['file']) {
      require_once $definition['file'];
    }
    $definition_cache[$action] = $definition;
  }
  return $definition_cache[$action];
}