function _nodequeue_autocomplete in Nodequeue 5.2
Same name and namespace in other branches
- 6.2 includes/nodequeue.admin.inc \_nodequeue_autocomplete()
- 7.3 includes/nodequeue.admin.inc \_nodequeue_autocomplete()
- 7.2 includes/nodequeue.admin.inc \_nodequeue_autocomplete()
1 call to _nodequeue_autocomplete()
- nodequeue_autocomplete in ./
nodequeue.module - Page callback for autocomplete.
1 string reference to '_nodequeue_autocomplete'
- nodequeue_api_autocomplete in ./
nodequeue.module - Fetch a list of nodes available to a given subqueue for autocomplete.
File
- ./
nodequeue.module, line 1260
Code
function _nodequeue_autocomplete($sqid, $string) {
$output = array();
if (!$sqid || !is_numeric($sqid) || !$string) {
return $output;
}
$subqueue = nodequeue_load_subqueue($sqid);
if (!$subqueue) {
return $output;
}
$queue = nodequeue_load($subqueue->qid);
if (!$queue) {
return $output;
}
$nodes = nodequeue_api_autocomplete($queue, $subqueue, $string);
return $nodes;
}