? 742658.patch
Index: ds.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ds/ds.module,v
retrieving revision 1.1.2.57
diff -u -p -r1.1.2.57 ds.module
--- ds.module	5 Mar 2010 16:21:58 -0000	1.1.2.57
+++ ds.module	15 Mar 2010 11:25:22 -0000
@@ -671,17 +671,18 @@ function ds_regions($regions = 'all', $r
 }
 
 /**
- * Function to check if the $links field is set for a type and build mode.
+ * Function to check if a field is set for a type and build mode.
  *
  * @param string $module The module to get the settings for.
  * @param string $type_name The name of the object type.
- * @param string $build_mode The key of the build mode
+ * @param string $build_mode The key of the build mode.
+ * @param string $field The name of the field to check for.
  */
-function ds_show_links($module, $type_name, $build_mode) {
+function ds_show_field($module, $type_name, $build_mode, $field) {
   static $show_links = array();
   if (!isset($show_links[$module][$type_name][$build_mode])) {
     $display_settings = variable_get($module .'_display_settings_'. $type_name, array());
-    $show_links[$module][$type_name][$build_mode] = (isset($display_settings[$build_mode]['fields']['links']) && $display_settings[$build_mode]['fields']['links']['region'] != 'disabled') ? TRUE : FALSE;
+    $show_links[$module][$type_name][$build_mode] = (isset($display_settings[$build_mode]['fields'][$field]) && $display_settings[$build_mode]['fields'][$field]['region'] != 'disabled') ? TRUE : FALSE;
   }
   return $show_links[$module][$type_name][$build_mode];
 }
