function rotor_views_plugins in Rotor Banner 7
Same name and namespace in other branches
- 6.2 views/rotor.views.inc \rotor_views_plugins()
Implementation of hook_views_plugins
File
- views/
rotor.views.inc, line 11 - Rotor views integration.
Code
function rotor_views_plugins() {
$path = drupal_get_path('module', 'rotor');
$views_path = drupal_get_path('module', 'views');
require_once "./{$path}/theme/theme.inc";
return array(
'module' => 'rotor',
'style' => array(
'rotor' => array(
'title' => t('Rotor'),
'help' => t('Displays nodes as a rotoating banner.'),
'handler' => 'rotor_plugin_style_rotor',
'path' => "{$path}/views",
'theme' => 'rotor_view_rotor',
'theme file' => 'theme.inc',
'theme path' => "{$path}/theme",
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
),
'row' => array(
'unformatted' => array(
'title' => t('Rotor'),
'help' => t('(Displays a Rotor Item ready to be used in a Rotor block'),
'handler' => 'rotor_plugin_row_rotor',
'path' => "{$path}/views",
'theme' => 'rotor_row_rotor',
'theme file' => 'theme.inc',
'theme path' => "{$path}/theme",
'uses fields' => FALSE,
'uses options' => module_exists('imagecache'),
'type' => 'normal',
),
),
);
}