function _imagecache_get_actionid in Patterns 6
Same name and namespace in other branches
- 6.2 components/imagecache.inc \_imagecache_get_actionid()
1 call to _imagecache_get_actionid()
- imagecache_patterns in components/
imagecache.inc
File
- components/
imagecache.inc, line 227
Code
function _imagecache_get_actionid($presetid, $action) {
$actionid = NULL;
$count = db_result(db_query("SELECT COUNT(*) FROM {imagecache_action} WHERE presetid = %d AND action = '%s'", $presetid, $action));
if ($count == 1) {
$actionid = db_result(db_query("SELECT actionid FROM {imagecache_action} WHERE presetid = %d AND action = '%s'", $presetid, $action));
}
return $actionid;
}