Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: mirie commentedI'm also confused on how to alter the query when it's not passed as a parameter.
Comment #2
greggadsdon CreditAttribution: 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 CreditAttribution: Steven Jones commentedMarking as a duplicate.