function _cmf_workflow_query_build in Content Management Filter 7
Same name and namespace in other branches
- 6.2 cmf.module \_cmf_workflow_query_build()
Query_build function for workflow
1 string reference to '_cmf_workflow_query_build'
- cmf_filters in ./
cmf.module - List node administration filters that can be applied.
File
- ./
cmf.module, line 1101 - @brief Content management filter module file
Code
function _cmf_workflow_query_build($key, $value, $index) {
if (!module_exists('workflow')) {
return;
}
if (!function_exists('workflow_load_all')) {
return;
}
$table = "workflow_node";
return array(
'where' => "{$table}.state_name = '%s'",
'join' => "INNER JOIN {$table} {$table} ON n.nid = {$table}.nid ",
'value' => $value,
);
}