function views_bootstrap_views_plugins in Views Bootstrap 7
Same name and namespace in other branches
- 7.3 views_bootstrap.views.inc \views_bootstrap_views_plugins()
- 7.2 views_bootstrap.views.inc \views_bootstrap_views_plugins()
Implements hook_views_plugins().
File
- ./
views_bootstrap.views.inc, line 10 - Provide views data and handlers.
Code
function views_bootstrap_views_plugins() {
$module_path = drupal_get_path('module', 'views_bootstrap');
return array(
'style' => array(
'views_bootstrap_carousel_plugin_style' => array(
'title' => t('Bootstrap Carousel'),
'help' => t('Bootstrap Carousel Style'),
'path' => $module_path . '/plugins/carousel',
'handler' => 'ViewsBootstrapCarouselPluginStyle',
'parent' => 'default',
'theme' => 'views_bootstrap_carousel_plugin_style',
'theme path' => $module_path . '/templates/carousel',
'theme file' => 'theme.inc',
'uses row plugin' => TRUE,
'uses grouping' => FALSE,
'uses options' => FALSE,
'type' => 'normal',
),
'views_bootstrap_thumbnail_plugin_style' => array(
'title' => t('Bootstrap Thumbnails'),
'help' => t('Bootstrap Thumbnails Style'),
'path' => $module_path . '/plugins/thumbnail',
'handler' => 'ViewsBootstrapThumbnailPluginStyle',
'parent' => 'default',
// Maybe 'list'?
'theme' => 'views_bootstrap_thumbnail_plugin_style',
'theme path' => $module_path . '/templates/thumbnail',
'theme file' => 'theme.inc',
'uses row plugin' => TRUE,
'uses grouping' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
),
'row' => array(
'views_bootstrap_carousel_plugin_rows' => array(
'title' => t('Bootstrap Carousel'),
'help' => t('Choose the fields to display in Bootstrap Carousel Style.'),
'path' => $module_path . '/plugins/carousel',
'handler' => 'ViewsBootstrapCarouselPluginRows',
'theme' => 'views_bootstrap_carousel_plugin_rows',
'theme path' => $module_path . '/templates/carousel',
'theme file' => 'theme.inc',
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
),
);
}