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
Comment #1
mirie commentedI'm also confused on how to alter the query when it's not passed as a parameter.
Comment #2
greggadsdon commentedThis 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.
Comment #3
steven jones commentedMarking as a duplicate.