| 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 |
| 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( |
| 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 |
), |
), |
| 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 |
), |
), |
| 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 |
), |
), |
| 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 |
), |
), |