function comment_views_plugins

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

Implementation of hook_views_plugins

Related topics

File

modules/comment.views.inc, line 530

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',
            ),
        ),
    );
}