function image_views_plugins in Image 7
Same name and namespace in other branches
- 6 views/image.views.inc \image_views_plugins()
Implementation of hook_views_plugins().
File
- views/
image.views.inc, line 162 - Views integration for Image module.
Code
function image_views_plugins() {
return array(
'style' => array(
/**
* A fluid grid view style for gallery items.
*/
'image_gallery' => array(
'title' => 'Gallery',
'help' => t('Displays items in a fluid grid.'),
'parent' => 'list',
'handler' => 'views_plugin_style_list',
'theme path' => drupal_get_path('module', 'image') . '/views/theme',
'theme file' => 'theme.inc',
'theme' => 'image_view_image_gallery',
'uses row plugin' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-list',
),
),
'argument validator' => array(
'image_size' => array(
'title' => t('Image size'),
'handler' => 'image_plugin_argument_validate_image_size',
'path' => drupal_get_path('module', 'image') . '/views',
),
),
'argument default' => array(
'image_size' => array(
'title' => t('Image size'),
'handler' => 'image_plugin_argument_default_image_size',
'path' => drupal_get_path('module', 'image') . '/views',
// Include parent class.
'parent' => 'fixed',
),
),
);
}