Browse Source

Change function name

Abdullah Almsaeed 7 years ago
parent
commit
1e312d9216
2 changed files with 4 additions and 5 deletions
  1. 1 2
      tripal_ds/api/tripal_ds.pane.api.inc
  2. 3 3
      tripal_ds/tripal_ds.module

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

@@ -31,8 +31,7 @@
  *  field_create_instance($instance);
  *  tripal_ds_field_create_field($field_label, $field, $bundle);
  */
-function tripal_ds_field_create_field_but_not_the_hook($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 - 3
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,8 +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_but_not_the_hook($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");
 }