Browse Source

Merge pull request #302 from statonlab/fix_tripal_ds_build_error

Fix tripal ds build error
Bradford Condon 7 years ago
parent
commit
c167d30dfb
2 changed files with 4 additions and 3 deletions
  1. 1 1
      tripal_ds/api/tripal_ds.pane.api.inc
  2. 3 2
      tripal_ds/tripal_ds.module

+ 1 - 1
tripal_ds/api/tripal_ds.pane.api.inc

@@ -31,7 +31,7 @@
  *  field_create_instance($instance);
  *  tripal_ds_field_create_field($field_label, $field, $bundle);
  */
-function tripal_ds_field_create_field($field_label, $field_name, $bundle_name) {
+function tripal_ds_create_field($field_label, $field_name, $bundle_name) {
   $field_name = str_replace(' ', '_', strtolower($field_name));
   //Build the rest of the passes parameters.
   $group_field_name = 'gp_'.$field_name;

+ 3 - 2
tripal_ds/tripal_ds.module

@@ -7,7 +7,7 @@ require_once "includes/tripal_ds.field_formatter.inc";
 require_once "includes/tripal_ds.field_formatter.inc";
 
 // Import the full Tripal_DS API into scope.
-tripal_ds_import_api(); 
+tripal_ds_import_api();
 
 /**
  * Implements hook_init().
@@ -381,7 +381,8 @@ function tripal_ds_pane_addition_button_form_submit($form, &$form_state) {
   //Build the rest of the passed variables.
   $field_name = $form_state['input']['field_name'];
   $field_label = $form_state['input']['field_name'];
-  tripal_ds_field_create_field($field_label, $field_name, $bundle_name);
+
+  tripal_ds_create_field($field_label, $field_name, $bundle_name);
   drupal_goto("admin/structure/bio_data/manage/$bundle_name/display");
 }