Преглед на файлове

TripalImporter form: set default form element weight to keep them at the top of the form.

Lacey Sanderson преди 6 години
родител
ревизия
1f47df9a53
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      tripal/includes/tripal.importer.inc

+ 2 - 0
tripal/includes/tripal.importer.inc

@@ -21,6 +21,7 @@ function tripal_get_importer_form($form, &$form_state, $class) {
       '#type' => 'fieldset',
       '#title' => t($class::$upload_title),
       '#description' => t($class::$upload_description)
+      '#weight' => -15,
     );
   }
 
@@ -91,6 +92,7 @@ function tripal_get_importer_form($form, &$form_state, $class) {
         'a minimum it indicates the source of the data.'),
       '#required' => $class::$require_analysis,
       '#options' => $analyses,
+      '#weight' => -14,
     );
   }