summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wehner2011-06-06 15:31:41 (GMT)
committer Daniel Wehner2011-06-06 15:31:41 (GMT)
commitac1266ac0e60949327387c076abf70e48722c7dd (patch)
tree2e2b45cedc72301e7328b19e8b2f1b66c82e3edc
parenta4a03b9c1416291c3d8cf5ae07a25079bad5d7e3 (diff)
#1179708 by chx: Add a view specific dbtng-tag, so people can alter the query per view
-rw-r--r--plugins/views_plugin_query_default.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/views_plugin_query_default.inc b/plugins/views_plugin_query_default.inc
index 12e95e3..31b1964 100644
--- a/plugins/views_plugin_query_default.inc
+++ b/plugins/views_plugin_query_default.inc
@@ -1180,7 +1180,10 @@ class views_plugin_query_default extends views_plugin_query {
// Go ahead and build the query.
// db_select doesn't support to specify the key, so use getConnection directly.
- $query = Database::getConnection($target, $key)->select($this->base_table, $this->base_table, $options)->addTag('views');
+ $query = Database::getConnection($target, $key)
+ ->select($this->base_table, $this->base_table, $options)
+ ->addTag('views')
+ ->addTag('views_' . $this->view->name);
if (!empty($distinct)) {
$query->distinct();