summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc')
-rw-r--r--kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc
new file mode 100644
index 0000000..da6f65b
--- /dev/null
+++ b/kolab.org/www/drupal-7.18/sites/all/modules/views/modules/tracker/views_handler_filter_tracker_comment_user_uid.inc
@@ -0,0 +1,23 @@
+<?php
+/**
+ * @file
+ * Contains views_handler_filter_tracker_comment_user_uid
+ */
+
+/**
+ * UID filter to check for nodes that user posted or commented on.
+ */
+class views_handler_filter_tracker_comment_user_uid extends views_handler_filter_comment_user_uid {
+
+ /**
+ * Overrides views_handler_filter_comment_user_uid::query()
+ */
+ function query() {
+ // Because this handler thinks it's an argument for a field on the {node}
+ // table, we need to make sure {tracker_user} is JOINed and use its alias
+ // for the WHERE clause.
+ $tracker_user_alias = $this->query->ensure_table('tracker_user');
+ $this->query->add_where(0, "$tracker_user_alias.uid", $this->value);
+ }
+
+}