function imagecache_preset_actions in ImageCache 6.2
Same name and namespace in other branches
- 5.2 imagecache.module \imagecache_preset_actions()
1 call to imagecache_preset_actions()
- imagecache_presets in ./
imagecache.module - Get an array of all presets and their settings.
File
- ./
imagecache.module, line 1101 - Dynamic image resizer and image cacher.
Code
function imagecache_preset_actions($preset, $reset = FALSE) {
static $actions_cache = array();
if ($reset || empty($actions_cache[$preset['presetid']])) {
$result = db_query('SELECT * FROM {imagecache_action} where presetid = %d order by weight', $preset['presetid']);
while ($row = db_fetch_array($result)) {
$row['data'] = unserialize($row['data']);
$actions_cache[$preset['presetid']][] = $row;
}
}
return isset($actions_cache[$preset['presetid']]) ? $actions_cache[$preset['presetid']] : array();
}