Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f546cfa1
Commit
f546cfa1
authored
Nov 10, 2009
by
Dries Buytaert
Browse files
- Patch
#619580
by Crell: only invoke query_alter() on tagged queries.
parent
33d44ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database/select.inc
View file @
f546cfa1
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment