In nodequeue.module, function nodequeue_api_autocomplete($queue, $subqueue, $string) {

This part of code can't work :

// Call to the API.
$function = $queue->owner . "_nodequeue_autocomplete";
if (function_exists($function)) {
return $function($queue, $subqueue, $string, $where, $where_args);
}

because $where and $where_args are undefined previously in this function.

Comments

mirie’s picture

I'm also confused on how to alter the query when it's not passed as a parameter.

greggadsdon’s picture

This patch https://drupal.org/files/issues/nodequeue-query_add_tag-2231793-9.patch allows the query to by altered using hook_query_TAG_alter(). $queue and $subqueue are passed in the metadata.

Steven Jones’s picture

Status: Active » Closed (duplicate)

Marking as a duplicate.