? galleryformatter_media_compatibility.patch
Index: galleryformatter.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/galleryformatter/galleryformatter.module,v
retrieving revision 1.4
diff -u -p -r1.4 galleryformatter.module
--- galleryformatter.module	20 Jun 2010 11:39:02 -0000	1.4
+++ galleryformatter.module	31 Jan 2011 04:30:10 -0000
@@ -11,7 +11,7 @@ function galleryformatter_field_formatte
   return array(
     'galleryformatter_default' => array(
       'label' => t('jQuery Gallery'),
-      'field types' => array('image'),
+      'field types' => array('image', 'media'),
       'settings' => array(
         'slide_style' => 'galleryformatter_slide',
         'thumb_style' => 'galleryformatter_thumb',
@@ -136,6 +136,7 @@ function galleryformatter_field_formatte
      */
     // Grab and sanitize image information
     // $renderitems['slides'][$delta]['description'] = check_plain($item['description']); // so far no description in d7 image fields
+    $items[$delta] = $item = (array)$item;
     $renderitems['slides'][$delta]['title'] = check_plain($item['title']);
     // Check if alt attribute is already set, if not use the filename as alt attribute
     $renderitems['slides'][$delta]['alt'] = (isset($item['alt']) && !empty($item['alt'])) ? check_plain($item['alt']) : $item['filename'];
