Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/comment/views_handler_field_ncs_last_updated.inc
4 4
 * @file
5 5
 * Definition of views_handler_field_ncs_last_updated.
6 6
 */
7

  
7 8
/**
8 9
 * Field handler to display the newer of last comment / node updated.
9 10
 *
10 11
 * @ingroup views_field_handlers
11 12
 */
12 13
class views_handler_field_ncs_last_updated extends views_handler_field_date {
13
  function query() {
14

  
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function query() {
14 19
    $this->ensure_my_table();
15 20
    $this->node_table = $this->query->ensure_table('node', $this->relationship);
16 21
    $this->field_alias = $this->query->add_field(NULL, "GREATEST(" . $this->node_table . ".changed, " . $this->table_alias . ".last_comment_timestamp)", $this->table_alias . '_' . $this->field);
17 22
  }
23

  
18 24
}

Formats disponibles : Unified diff