/[drupal]/contributions/modules/views/modules/comment.views.inc
ViewVC logotype

Diff of /contributions/modules/views/modules/comment.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.33.4.2, Mon Nov 2 23:25:01 2009 UTC revision 1.33.4.3, Mon Nov 9 22:49:56 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: comment.views.inc,v 1.33.4.1 2009/11/02 22:01:26 merlinofchaos Exp $  // $Id: comment.views.inc,v 1.33.4.2 2009/11/02 23:25:01 merlinofchaos Exp $
3  /**  /**
4   * @file   * @file
5   * Provide views data and handlers for comment.module   * Provide views data and handlers for comment.module
# Line 196  function comment_views_data() { Line 196  function comment_views_data() {
196      'filter' => array(      'filter' => array(
197        'handler' => 'views_handler_filter_date',        'handler' => 'views_handler_filter_date',
198      ),      ),
199    );    );
200    
201    // status (approved or not)    // status (approved or not)
202    $data['comment']['status'] = array(    $data['comment']['status'] = array(
# Line 278  function comment_views_data() { Line 278  function comment_views_data() {
278      'help' => t('The node the comment is a reply to.'),      'help' => t('The node the comment is a reply to.'),
279      'relationship' => array(      'relationship' => array(
280        'base' => 'node',        'base' => 'node',
281        'field' => 'nid',        'base field' => 'nid',
282        'handler' => 'views_handler_relationship',        'handler' => 'views_handler_relationship',
283        'label' => t('Node'),        'label' => t('Node'),
284      ),      ),
# Line 289  function comment_views_data() { Line 289  function comment_views_data() {
289      'help' => t("The User ID of the comment's author."),      'help' => t("The User ID of the comment's author."),
290      'relationship' => array(      'relationship' => array(
291        'base' => 'users',        'base' => 'users',
292        'field' => 'uid',        'base field' => 'uid',
293        'handler' => 'views_handler_relationship',        'handler' => 'views_handler_relationship',
294        'label' => t('User'),        'label' => t('User'),
295      ),      ),
# Line 305  function comment_views_data() { Line 305  function comment_views_data() {
305        'title' => t('Parent comment'),        'title' => t('Parent comment'),
306        'help' => t('The parent comment.'),        'help' => t('The parent comment.'),
307        'base' => 'comment',        'base' => 'comment',
308        'field' => 'cid',        'base field' => 'cid',
309        'handler' => 'views_handler_relationship',        'handler' => 'views_handler_relationship',
310        'label' => t('Parent comment'),        'label' => t('Parent comment'),
311      ),      ),
# Line 321  function comment_views_data() { Line 321  function comment_views_data() {
321    $data['node_comment_statistics']['table']['join'] = array(    $data['node_comment_statistics']['table']['join'] = array(
322      //...to the node table      //...to the node table
323      'node' => array(      'node' => array(
324        'type' => 'INNER',        'type' => 'INNER',
325        'left_field' => 'nid',        'left_field' => 'nid',
326        'field' => 'nid',        'field' => 'nid',
327       ),       ),

Legend:
Removed from v.1.33.4.2  
changed lines
  Added in v.1.33.4.3

  ViewVC Help
Powered by ViewVC 1.1.2