You are here

function comment_views_plugins in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/comment.views.inc \comment_views_plugins()
  2. 7.3 modules/comment.views.inc \comment_views_plugins()

Implementation of hook_views_plugins

Related topics

File

modules/comment.views.inc, line 432
Provide views data and handlers for comment.module

Code

function comment_views_plugins() {
  return array(
    'module' => 'views',
    // This just tells views our themes are in Views.
    'row' => array(
      'comment' => array(
        'title' => t('Comment'),
        'help' => t('Display the comment with standard comment view.'),
        'handler' => 'views_plugin_row_comment_view',
        'path' => drupal_get_path('module', 'views') . '/modules/comment',
        // not necessary for most modules
        'theme' => 'views_view_row_comment',
        'base' => array(
          'comments',
        ),
        // only works with 'comment' as base.
        'uses options' => TRUE,
        'type' => 'normal',
        'help topic' => 'style-comment',
      ),
      'comment_rss' => array(
        'title' => t('Comment'),
        'help' => t('Display the comment as RSS.'),
        'handler' => 'views_plugin_row_comment_rss',
        'path' => drupal_get_path('module', 'views') . '/modules/comment',
        // not necessary for most modules
        'theme' => 'views_view_row_rss',
        'base' => array(
          'comments',
        ),
        // only works with 'comment' as base.
        'type' => 'feed',
        'help topic' => 'style-comment-rss',
      ),
    ),
  );
}