function comment_views_plugins

Same name and namespace in other branches
  1. 6.x-3.x modules/comment.views.inc \comment_views_plugins()

Implements hook_views_plugins().

File

modules/comment.views.inc, line 657

Code

function comment_views_plugins() {
  return array(
    'module' => 'views',
    'row' => array(
      'comment' => array(
        'title' => t('Comment'),
        'help' => t('Display the comment with standard comment view.'),
        'handler' => 'views_plugin_row_comment_view',
        'theme' => 'views_view_row_comment',
        'path' => drupal_get_path('module', 'views') . '/modules/comment',
        // Not necessary for most modules.
'base' => array(
          'comment',
        ),
        // 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',
        'theme' => 'views_view_row_rss',
        'path' => drupal_get_path('module', 'views') . '/modules/comment',
        // Not necessary for most modules.
'base' => array(
          'comment',
        ),
        // Only works with 'comment' as base.
'uses options' => TRUE,
        'type' => 'feed',
        'help topic' => 'style-comment-rss',
      ),
    ),
  );
}