function tripal_run_importer_post_run

3.x tripal.importer.api.inc tripal_run_importer_post_run($loader, $job)

Second step of the tripal_run_importer.

Parameters

$loader: The TripalImporter object.

$job: The TripalJob object.

Throws

Exception

Related topics

1 call to tripal_run_importer_post_run()
tripal_run_importer in tripal/api/tripal.importer.api.inc
Imports data into the database.

File

tripal/api/tripal.importer.api.inc, line 201
Provides an application programming interface (API) for working with data file importers using the TripalImporter class.

Code

function tripal_run_importer_post_run($loader, $job) {
  try {
    // the transaction
    $transaction = db_transaction();
    $loader->postRun();
  }
  catch (Exception $e) {
    // Rollback and re-throw the error.
    $transaction->rollback();
    throw $e;
  }
}