Index: styles.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/styles/styles.module,v
retrieving revision 1.2.2.26
diff -u -p -r1.2.2.26 styles.module
--- styles.module	25 Jan 2010 22:18:34 -0000	1.2.2.26
+++ styles.module	27 Sep 2010 22:56:33 -0000
@@ -57,13 +57,15 @@ function styles_field_formatter_info() {
  */
 function styles_field_formatter_view($obj_type, $object, $field, $instance, $langcode, $items, $display) {
   $element = array('#formatter' => $display['type']);
-  if (!is_array($object)) {
-    $object = array($object);
+  foreach ($items as $delta => $item) {
+    // @todo The variable name 'object' is misleading, but retained for
+    //   backwards compatibility until a broader refactoring of the Styles
+    //   module. For now, it's the $item array cast to an object. For File and
+    //   Image fields, this is a fully loaded file object, because
+    //   file_field_load() loads the referenced file and merges its properties
+    //   into $item, but for other field types, it may simply be raw field data.
+    $element[$delta] = array('#markup' => theme('styles_field_formatter', array('element' => $element, 'object' => (object) $item)));
   }
-  foreach ($object as $delta => $item) {
-    $element[$delta] = array('#markup' => theme('styles_field_formatter', array('element' => $element, 'object' => $item)));
-  }
-
   return $element;
 }
 
