function tripal_pub_job_describe_args

2.x tripal_pub.module tripal_pub_job_describe_args($callback, $args)
3.x tripal_pub.module tripal_pub_job_describe_args($callback, $args)

Implements hook_job_describe_args().

Parameters

$callback:

$args:

Related topics

File

tripal_pub/tripal_pub.module, line 432
Basic functionality of the pub module

Code

function tripal_pub_job_describe_args($callback, $args) {

  $new_args = array();
  if ($callback == 'tripal_execute_pub_importer') {
    // get all of the loaders
    $qargs = array(':import_id' => $args[0]);
    $sql = "SELECT * FROM {tripal_pub_import} WHERE pub_import_id = :import_id ";
    $import = db_query($sql, $qargs)->fetchObject();

    $new_args['Importer'] = $import->name;
  }
  return $new_args;
}