function galleryformatter_field_formatter_settings_summary in Gallery formatter 7
Implements hook_field_formatter_settings_summary().
File
- ./
galleryformatter.module, line 137
Code
function galleryformatter_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary[] = t('Slides style: @value', array(
'@value' => $settings['slide_style'],
));
$summary[] = t('Thumbnails style: @value', array(
'@value' => $settings['thumb_style'],
));
$summary[] = t('Gallery style: @value', array(
'@value' => $settings['style'],
));
$summary[] = $settings['link_to_full'] ? t('Linking to full image') : t('Not linking to full image');
if ($settings['link_to_full']) {
$full_image_style = $settings['link_to_full_style'] ? $settings['link_to_full_style'] : t('None (original image)');
$summary[] = t('Full image style: @value', array(
'@value' => $full_image_style,
));
$summary[] = t('Modal used for full image: @value', array(
'@value' => $settings['modal'],
));
$linking_method = $settings['linking_method'] == 'onclick_full' ? t('On slide click') : t('Using a link');
$summary[] = t('Linking method: @value', array(
'@value' => $linking_method,
));
}
return implode('<br />', $summary);
}