Add extra shared import functions
[civicrm-core.git] / CRM / Import / Form / Preview.php
index cce75402e92894a8b428262955b9768ed5f33c1d..69e302d8c99aae9695a3911065cdec620d787a90 100644 (file)
@@ -117,4 +117,14 @@ abstract class CRM_Import_Form_Preview extends CRM_Import_Forms {
     $this->assign('rowDisplayCount', $this->getSubmittedValue('skipColumnHeader') ? 3 : 2);
   }
 
+  /**
+   * Process the mapped fields and map it into the uploaded file
+   * preview the file and extract some summary statistics
+   *
+   * @return void
+   */
+  public function postProcess() {
+    CRM_Import_Parser::runImport(NULL, $this->getUserJobID(), 0);
+  }
+
 }