function nodequeue_workflow_ng_action_load_nodequeue in Nodequeue 5.2
File
- ./
nodequeue.workflow_ng.inc, line 66 - nodequeue_workflow_ng.inc
Code
function nodequeue_workflow_ng_action_load_nodequeue($settings, &$arguments, &$log) {
if ($settings['nodequeue_token']) {
extract(workflow_ng_token_replace_all(array(
'nodequeue_token',
), $settings, $arguments, $log));
$qid[] = $nodequeue_token;
}
else {
$qid[] = $settings['nodequeue_list'];
}
$queues = nodequeue_load_queues($qid);
//We load only a single nodequeue.
$queue = array_shift($queues);
if ($queue) {
return array(
'#new arguments' => array(
'nodequeue' => $queue,
),
);
}
}