There is currently a hook which allows to alter results in term of node selection, but not about the label itself.
The text provided is simply the "$node->title" which in many cases is not enought.
Sometime there is a second title, caracteristics added using fields, or eventualy the need to display the content type used.
That's why a 'drupal_alter' just before the 'return' instruction should be very helpfull.
$context = array(
'queue' => $queue,
'subqueue' => $subqueue,
'string' => $string,
'result' => $result,
);
drupal_alter('nodequeue_api_autocomplete', $matches, $context);
Comments
Comment #2
sebastien m. commentedHere is a suggestion.
note : I was obliged to use
fetchAll()because we can't loop too times on a db_select result.