views_bootstrap.views.inc in Views Bootstrap 7
Same filename and directory in other branches
Provide views data and handlers.
File
views_bootstrap.views.incView source
<?php
/**
* @file
* Provide views data and handlers.
*/
/**
* Implements hook_views_plugins().
*/
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',
),
),
);
}
Functions
Name | Description |
---|---|
views_bootstrap_views_plugins | Implements hook_views_plugins(). |