Commit f546cfa1 authored by Dries's avatar Dries
Browse files

- Patch #619580 by Crell: only invoke query_alter() on tagged queries.

parent 33d44ba0
......@@ -1065,8 +1065,8 @@ public function preExecute(SelectQueryInterface $query = NULL) {
}
// Modules may alter all queries or only those having a particular tag.
drupal_alter('query', $query);
if (isset($this->alterTags)) {
drupal_alter('query', $query);
foreach ($this->alterTags as $tag => $value) {
drupal_alter("query_$tag", $query);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment