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