You are here

function _imagecache_actions_get_by_presetid in ImageCache 5

2 calls to _imagecache_actions_get_by_presetid()
imagecache_cache in ./imagecache.module
_imagecache_actions_form in ./imagecache.module

File

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

Code

function _imagecache_actions_get_by_presetid($presetid) {
  $actions = array();
  $result = db_query('SELECT actionid, weight, data FROM {imagecache_action} where presetid = %d order by weight', $presetid);
  while ($row = db_fetch_array($result)) {
    $row['data'] = unserialize($row['data']);
    $actions[$row['actionid']] = $row;
  }
  return $actions;
}