I use galleryformatter often enough, but for the first time inside Views.
I've selected galleryformatted as formatter for image field and it returned nothing.

Fix:
renderable array generated properly, problem with returning value
galleryformatter.module
line: 375

/**
 * Implements hook_field_formatter_view().
 */
function galleryformatter_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  ...
  //return $element;
  return array($element); // Return array with $element instead
}
CommentFileSizeAuthor
#1 2087213-1-return-array.patch451 byteskscheirer
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kscheirer’s picture

Status: Active » Needs review
FileSize
451 bytes

Converted the above into a patch. Can you test that with this change the regular usage (as a field formatter) still works properly?

mpa3b’s picture

Issue summary: View changes

doesn't work, shows only the first image

ytsejam’s picture

Patch works for me, million thanks! Hope this gets committed.

devvmh’s picture

+1 the patch in #1 works for me. I'd love to see this included in the next update to this module

Chetna_Negi’s picture

#1 working. Thanks player259 and kscheirer.

kscheirer’s picture

Status: Needs review » Reviewed & tested by the community

Based on 3,4,5

Manuel Garcia’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.