Browse Source

Removed acciental merge of experimental button... not sure how I did that

Stephen Ficklin 5 years ago
parent
commit
72a89484f4
1 changed files with 5 additions and 7 deletions
  1. 5 7
      tripal/includes/tripal.importer.inc

+ 5 - 7
tripal/includes/tripal.importer.inc

@@ -111,13 +111,11 @@ function tripal_get_importer_form($form, &$form_state, $class) {
   // to change the order of their elements in reference to the default ones.
   $form = array_merge($form, $element_form);
 
-  if ($class::$use_button == TRUE) {
-    $form['button'] = [
-      '#type' => 'submit',
-      '#value' => t($class::$button_text),
-      '#weight' => 10,
-    ];
-  }
+  $form['button'] = [
+    '#type' => 'submit',
+    '#value' => t($class::$button_text),
+    '#weight' => 10,
+  ];
   return $form;
 }