function juicebox_field_formatter_info in Juicebox HTML5 Responsive Image Galleries 7
Same name and namespace in other branches
- 7.2 includes/juicebox.field.inc \juicebox_field_formatter_info()
Implements hook_field_formatter_info().
Add juicebox_formatter formatter.
File
- ./
juicebox.module, line 876 - Provides Drupal integration with the Juicebox library.
Code
function juicebox_field_formatter_info() {
$formatters = array(
'juicebox_formatter' => array(
'label' => t('Juicebox Gallery'),
'field types' => array(
'image',
),
'settings' => array(
'image_style' => '',
'thumb_style' => 'thumbnail',
'caption_source' => 'alt',
'title_source' => 'title',
'jlib_galleryWidth' => '100%',
'jlib_galleryHeight' => '100%',
'jlib_backgroundColor' => '#222222',
'jlib_textColor' => 'rgba(255,255,255,1)',
'jlib_thumbFrameColor' => 'rgba(255,255,255,.5)',
'jlib_showOpenButton' => 1,
'jlib_showExpandButton' => 1,
'jlib_showThumbsButton' => 1,
'jlib_useThumbDots' => 0,
'jlib_useFullscreenExpand' => 0,
'manual_config' => '',
'custom_parent_classes' => '',
'apply_markup_filter' => 1,
'linkurl_source' => '',
'linkurl_target' => '_blank',
),
),
);
return $formatters;
}