diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-28 12:36:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-28 12:36:26 +0000 |
commit | 19a45ce5446f1ebc87f98d294a3acffdc8b54478 (patch) | |
tree | 29182a43073943cc35a35aa4d68964a44e7eaa08 /includes/database | |
parent | 748c31038d0de19185c7c176731d7eed958b7c9d (diff) | |
download | brdo-19a45ce5446f1ebc87f98d294a3acffdc8b54478.tar.gz brdo-19a45ce5446f1ebc87f98d294a3acffdc8b54478.tar.bz2 |
- Patch #765860 by effulgentsia, dww, dereine, mikey_p, sun: make drupal_alter() support multiple alter hooks executed by module weight.
Diffstat (limited to 'includes/database')
-rw-r--r-- | includes/database/select.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc index 8a6a4ab30..2961bb1ef 100644 --- a/includes/database/select.inc +++ b/includes/database/select.inc @@ -1069,10 +1069,11 @@ class SelectQuery extends Query implements SelectQueryInterface { // Modules may alter all queries or only those having a particular tag. if (isset($this->alterTags)) { - drupal_alter('query', $query); + $hooks = array('query'); foreach ($this->alterTags as $tag => $value) { - drupal_alter("query_$tag", $query); + $hooks[] = 'query_' . $tag; } + drupal_alter($hooks, $query); } return $this->prepared = TRUE; } |