function imagecache_action_definition in ImageCache 5.2
Same name and namespace in other branches
- 6.2 imagecache.module \imagecache_action_definition()
5 calls to imagecache_action_definition()
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];
}