function views_nodes_split_views_plugins in Views nodes split 7
Same name and namespace in other branches
- 6 views_nodes_split.module \views_nodes_split_views_plugins()
Implements hook_views_plugins().
File
- ./
views_nodes_split.module, line 12 - Implements a views row plugin that can display the first nodes in a result using a different view mode.
Code
function views_nodes_split_views_plugins() {
return array(
'module' => 'views',
// This just tells our themes are elsewhere.
'row' => array(
'node_split' => array(
'title' => t('Splited content'),
'help' => t('Display the content with standard node view, but the first nodes can have different view modes.'),
'handler' => 'views_plugin_row_node_view_split',
'path' => drupal_get_path('module', 'views_nodes_split') . '/plugins',
'base' => array(
'node',
),
'uses options' => TRUE,
'type' => 'normal',
'parent' => 'views_plugin_row_node_view',
),
),
'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',
),
),
);
}