function node_views_plugins in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/node.views.inc \node_views_plugins()
- 7.3 modules/node.views.inc \node_views_plugins()
Implementation of hook_views_plugins
Related topics
File
- modules/
node.views.inc, line 755 - Provide views data and handlers for node.module
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',
),
),
);
}