views_nodes_split.module in Views nodes split 7
Same filename and directory in other branches
Implements a views row plugin that can display the first nodes in a result using a different view mode.
File
views_nodes_split.moduleView source
<?php
/**
* @file
* Implements a views row plugin that can display the first nodes in a result
* using a different view mode.
*/
/**
* Implements hook_views_plugins().
*/
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',
),
),
);
}
Functions
Name![]() |
Description |
---|---|
views_nodes_split_views_plugins | Implements hook_views_plugins(). |