function node_views_plugins
Same name in other branches
- 6.x-3.x modules/node.views.inc \node_views_plugins()
Implements hook_views_plugins().
File
-
modules/
node.views.inc, line 693
Code
function node_views_plugins() {
return array(
'module' => 'views',
// This just tells our themes are elsewhere.
'row' => array(
'node' => array(
'title' => t('Content'),
'help' => t('Display the content with standard node view.'),
'handler' => 'views_plugin_row_node_view',
'path' => drupal_get_path('module', 'views') . '/modules/node',
// Not necessary for most modules.
'base' => array(
'node',
),
// Only works with 'node' as base.
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-node',
),
'node_rss' => array(
'title' => t('Content'),
'help' => t('Display the content 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('Content'),
'handler' => 'views_plugin_argument_validate_node',
),
),
'argument default' => array(
'node' => array(
'title' => t('Content ID from URL'),
'handler' => 'views_plugin_argument_default_node',
),
),
);
}