$name)); } else { // Do we want to update? Probably not. return; } foreach ($actions as $weight => $data) { $action = array(); $action['action'] = $data['action']; unset($data['action']); $action['presetid'] = $preset['presetid']; $action['weight'] = $weight; $action['data'] = $data; imagecache_action_save($action); } }