diff --git a/README.txt b/README.txt index cde0817..8a3a136 100644 --- a/README.txt +++ b/README.txt @@ -18,14 +18,14 @@ INSTALLATION Required: - a. Media (latest release, tested with 7.x-1.0-beta4) + a. Media (latest release, tested with 7.x-1.0-beta5) - Download from http://drupal.org/project/media and unpack it in your contributed modules directory (usually sites/all/modules). b. Multiform (latest release, tested with 7.x-1.0-beta2) - Download from http://drupal.org/project/multiform and unpack it in your contributed modules directory (usually sites/all/modules). - c. Styles (latest release, tested with 7.x-2.0-alpha5) - - Download from http://drupal.org/project/styles and unpack it in your + c. Chaos tool suite (latest release, tested with 7.x-1.0-beta1) + - Download from http://drupal.org/project/ctools and unpack it in your contributed modules directory (usually sites/all/modules). d. ColorBox jQuery plugin (latest release, tested with 1.3.17) - Download from http://colorpowered.com/colorbox and unpack it in @@ -33,10 +33,10 @@ INSTALLATION Recommended for the best experience: - e. Media Browser Plus (latest release, tested with 7.x-1.0-beta2) + e. Media Browser Plus (latest release, tested with 7.x-1.0-beta3) - Download from http://drupal.org/project/media_browser_plus and unpack it in your contributed modules directory (usually sites/all/modules). - f. Media YouTube (latest release, 7.x-1.0-alpha4) + f. Media YouTube (latest release, 7.x-1.0-alpha5) - Download from http://drupal.org/project/media_youtube and unpack it in your contributed modules directory (usually sites/all/modules). g. Plupload (latest release, 7.x-1.0-beta3) diff --git a/media_gallery.fields.inc b/media_gallery.fields.inc index 18e01e5..f172915 100644 --- a/media_gallery.fields.inc +++ b/media_gallery.fields.inc @@ -110,7 +110,8 @@ function media_gallery_field_formatter_view($entity_type, $entity, $field, $inst field_attach_prepare_view('file', $files, $file_view_mode); entity_prepare_view('file', $files); - // View each file. + // View each file. We don't use file_view_multiple(), because we need the + // render array indexed by $delta rather than by file id. foreach ($items as $delta => $item) { $element[$delta] = file_view($item['file'], $file_view_mode, $langcode); $element[$delta]['#media_gallery_entity_type'] = $entity_type;