Projet

Général

Profil

Paste
Télécharger (659 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / views / modules / tracker / views_handler_filter_tracker_comment_user_uid.inc @ 5d12d676

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of views_handler_filter_tracker_comment_user_uid.
6
 */
7

    
8
/**
9
 * UID filter to check for nodes that user posted or commented on.
10
 */
11
class views_handler_filter_tracker_comment_user_uid extends views_handler_filter_comment_user_uid {
12

    
13
  /**
14
   * {@inheritdoc}
15
   */
16
  public function query() {
17
    // Because this handler thinks it's an argument for a field on the {node}
18
    // table, we need to make sure {tracker_user} is JOINed and use its alias
19
    // for the WHERE clause.
20
    $tracker_user_alias = $this->query->ensure_table('tracker_user');
21
    $this->query->add_where(0, "$tracker_user_alias.uid", $this->value);
22
  }
23

    
24
}