You are here

function imagecache_action in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache.module \imagecache_action()
2 calls to imagecache_action()
imagecache_action_load in ./imagecache.module
imagecache_ui_action_delete_form_submit in ./imagecache_ui.pages.inc
4 string references to 'imagecache_action'
imagecache_action_save in ./imagecache.module
imagecache_update_3 in ./imagecache.install
Remove auto-increment from tables, instead depending on the sequences table and db_next_id()
imagecache_update_6000 in ./imagecache.install
Upgrade from Drupal 5 => Drupal 6.
imagecache_update_6001 in ./imagecache.install
Make sure the schemas match, the weight should be signed.

File

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

Code

function imagecache_action($actionid) {
  static $actions = array();
  if (!isset($actions[$actionid])) {
    $action = array();
    $result = db_query('SELECT * FROM {imagecache_action} WHERE actionid=%d', $actionid);
    if ($row = db_fetch_array($result)) {
      $action = $row;
      $action['data'] = unserialize($action['data']);
      $definition = imagecache_action_definition($action['action']);
      $action = array_merge($definition, $action);
      $actions[$actionid] = $action;
    }
  }
  return $actions[$actionid];
}