Browse Source

Merge pull request #1145 from tripal/1143-tv3-fix_importer_button

Fix for previous PR on use_button for importers.
Lacey-Anne Sanderson 4 years ago
parent
commit
41b300fabd
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tripal/includes/TripalImporter.inc

+ 8 - 0
tripal/includes/TripalImporter.inc

@@ -57,6 +57,7 @@ class TripalImporter {
    */
   public static $use_analysis = TRUE;
 
+
   /**
    * If the $use_analysis value is set above then this value indicates if the
    * analysis should be required.
@@ -69,6 +70,13 @@ class TripalImporter {
    */
   public static $button_text = 'Import File';
 
+  /**
+   * If the form submit button that is provided by the Importer is not
+   * needed (i.e. the child class wants to do something different). Then
+   * set this to FALSE.
+   */
+  public static $use_button = TRUE;
+
   /**
    * Indicates the methods that the file uploader will support.
    */