Need a tag added to alter the autocomplete query.

CommentFileSizeAuthor
#2 autocomplete-add-tag-2885509-2.patch534 bytesdaveferrara1
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

daveferrara1 created an issue. See original summary.

daveferrara1’s picture

Here is a quick patch to add a tag so someone can use hook_query_alter() and modify the autocomplete results.

function hook_query_alter($query) {
  if ($query->hasTag('efq_relation_add_autocomplete')) {
    //alter query
  }
}

mr.york’s picture

Status: Active » Fixed

Thank you!
Commited.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

osopolar’s picture

The patch file was committed accidentally.

mr.york’s picture

Thank you. I was remove the patch file.