diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-04 19:56:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-04 19:56:51 +0000 |
commit | 634379299f7ab35bf64504718a77d00767fa2dfa (patch) | |
tree | 4ed784c5e43ea9de8818dd7ac38f0648a76b2b4d /includes | |
parent | 7e60d94f69d896e1f063cc52a4ba1778f91a77fc (diff) | |
download | brdo-634379299f7ab35bf64504718a77d00767fa2dfa.tar.gz brdo-634379299f7ab35bf64504718a77d00767fa2dfa.tar.bz2 |
- Patch #320591 by Moshe, Crell et al: tag specific alter hook for database queries.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/database/select.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc index a8e763146..532b2e5a1 100644 --- a/includes/database/select.inc +++ b/includes/database/select.inc @@ -291,7 +291,13 @@ class SelectQuery extends Query implements QueryConditionInterface, QueryAlterab } public function execute() { + // Modules may alter all queries or only those having a particular tag. drupal_alter('query', $this); + if (isset($this->alterTags)) { + foreach ($this->alterTags as $tag => $value) { + drupal_alter("query_$tag", $this); + } + } $args = $this->getArguments(); |