Browse Source

Fix tripal_ds.module

mboudet 6 years ago
parent
commit
9b207bfd18
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tripal_ds/tripal_ds.module

+ 6 - 1
tripal_ds/tripal_ds.module

@@ -432,7 +432,12 @@ function tripal_ds_update_ds_layout($bundle_name, $field_name, $tripal_pane_name
       }
     }
     //Update the ds_layout_settings table with the new layout info.
-    drupal_write_record('ds_layout_settings', $layout_info);
+    db_update('ds_layout_settings')
+        ->fields(array(
+            'settings' => serialize($layout_info),
+        ))
+        ->condition('ds_layout_settings.id', $ds_identifier, '=')
+        ->execute();
   }
 }
 /*