function image_gallery_views_plugins in Image 6
Same name and namespace in other branches
- 7 contrib/image_gallery/views/image_gallery.views.inc \image_gallery_views_plugins()
Implementation of hook_views_plugins().
File
- contrib/
image_gallery/ views/ image_gallery.views.inc, line 189 - Image Gallery views integration.
Code
function image_gallery_views_plugins() {
return array(
'display' => array(
/**
* The image gallery display: like a page, but with a subgallery
* list embedded above it.
* Uses a handler rather than a tpl file.
*/
'image_gallery' => array(
'title' => t('Gallery page'),
'help' => t('Display the view as a gallery of images, with a URL and menu links.'),
'parent' => 'page',
'handler' => 'image_gallery_plugin_display_image_gallery',
'theme' => 'views_view',
'uses hook menu' => TRUE,
'use ajax' => TRUE,
'use pager' => TRUE,
'accept attachments' => TRUE,
'admin' => t('Page'),
// @todo ?
'help topic' => 'display-page',
'path' => drupal_get_path('module', 'image_gallery') . '/views',
),
),
'style' => array(
/**
* A list style for term lists.
*/
'image_gallery_terms' => array(
'title' => 'Subgallery list',
'help' => t('Displays subgalleries in a formatted list.'),
'parent' => 'list',
'handler' => 'views_plugin_style_list',
'theme path' => drupal_get_path('module', 'image_gallery') . '/views/theme',
'theme file' => 'theme.inc',
'theme' => 'image_gallery_view_image_gallery_terms',
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-list',
),
),
);
}