function node_views_plugins

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

Implementation of hook_views_plugins

Related topics

File

modules/node.views.inc, line 788

Code

function node_views_plugins() {
    return array(
        'module' => 'views',
        // This just tells our themes are elsewhere.
'row' => array(
            'node' => array(
                'title' => t('Node'),
                'help' => t('Display the node with standard node view.'),
                'handler' => 'views_plugin_row_node_view',
                'path' => drupal_get_path('module', 'views') . '/modules/node',
                // not necessary for most modules
'theme' => 'views_view_row_node',
                'base' => array(
                    'node',
                ),
                // only works with 'node' as base.
'uses options' => TRUE,
                'type' => 'normal',
                'help topic' => 'style-node',
            ),
            'node_rss' => array(
                'title' => t('Node'),
                'help' => t('Display the node with standard node view.'),
                'handler' => 'views_plugin_row_node_rss',
                'path' => drupal_get_path('module', 'views') . '/modules/node',
                // not necessary for most modules
'theme' => 'views_view_row_rss',
                'base' => array(
                    'node',
                ),
                // only works with 'node' as base.
'uses options' => TRUE,
                'type' => 'feed',
                'help topic' => 'style-node-rss',
            ),
        ),
        'argument validator' => array(
            'node' => array(
                'title' => t('Node'),
                'handler' => 'views_plugin_argument_validate_node',
                'path' => drupal_get_path('module', 'views') . '/modules/node',
            ),
        ),
        'argument default' => array(
            'node' => array(
                'title' => t('Node ID from URL'),
                'handler' => 'views_plugin_argument_default_node',
                'path' => drupal_get_path('module', 'views') . '/modules/node',
                // not necessary for most modules
'parent' => 'fixed',
            ),
        ),
    );
}