You are here

function _imagecache_action_create in ImageCache 5

1 call to _imagecache_action_create()
imagecache_admin_submit in ./imagecache.module

File

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

Code

function _imagecache_action_create($action) {

  //debug_msg($action, 'action@create: ');
  $next_id = db_next_id('{imagecache_action}_actionid');
  db_query('INSERT INTO {imagecache_action} (actionid, presetid, weight, data) VALUES (%d, %d, %d, \'%s\')', $next_id, $action['presetid'], $action['weight'], serialize($action['data']));
}