commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / views / modules / node / views_handler_argument_node_uid_revision.inc
1 <?php
2
3 /**
4 * @file
5 * Defintion of views_handler_argument_node_uid_revision.
6 */
7
8 /**
9 * Filter handler to accept a user id to check for nodes that
10 * user posted or created a revision on.
11 */
12 class views_handler_argument_node_uid_revision extends views_handler_argument_comment_user_uid {
13 function query($group_by = FALSE) {
14 $this->ensure_my_table();
15 $placeholder = $this->placeholder();
16 $this->query->add_where_expression(0, "$this->table_alias.uid = $placeholder OR ((SELECT COUNT(*) FROM {node_revision} nr WHERE nr.uid = $placeholder AND nr.nid = $this->table_alias.nid) > 0)", array($placeholder => $this->argument));
17 }
18 }