From f10733d8797c44cf6c89c706fbd38351e6b18843 Mon Sep 17 00:00:00 2001 From: Antonio Fazari Date: Tue, 11 Feb 2014 16:42:59 +0000 Subject: [PATCH] made changes to support the image field alt and title settings --- sites/all/modules/contrib/galleria/galleria.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sites/all/modules/contrib/galleria/galleria.module b/sites/all/modules/contrib/galleria/galleria.module index d347412..a3e6145 100644 --- a/sites/all/modules/contrib/galleria/galleria.module +++ b/sites/all/modules/contrib/galleria/galleria.module @@ -375,7 +375,7 @@ function galleria_field_formatter_settings_form($field, $instance, $view_mode, $ '#default_value' => $settings['optionset'], ); - if ($field['type'] == 'file') { + if ($field['type'] == 'file' || $field['type'] == 'image') { // Provide alternate settings to allow selection of caption and alt tags. $bundles = field_info_instances('file'); // Determine if there are additional fields on the image instance. @@ -462,7 +462,7 @@ function galleria_field_formatter_settings_summary($field, $instance, $view_mode $summary[] = t('Option set: %optionset', array('%optionset' => $optionset)); // Summary for file fields. - if ($field['type'] == 'file') { + if ($field['type'] == 'file' || $field['type'] == 'image') { // Prepare options list. if (!empty($settings['alt_field']) || !empty($settings['title_field'])) { @@ -547,7 +547,7 @@ function galleria_field_formatter_view($entity_type, $entity, $field, $instance, if ($field['type'] == 'media') { $items = galleria_prepare_media_images($items); } - elseif ($field['type'] == 'file') { + elseif ($field['type'] == 'file' || $field['type'] == 'image') { $items = galleria_prepare_file_images($items, $display['settings'], $langcode); } elseif ($field['type'] == 'node_reference') { -- 1.7.12.4 (Apple Git-37)