function tripal_pub_install

2.x tripal_pub.install tripal_pub_install()
3.x tripal_pub.install tripal_pub_install()
1.x tripal_pub.install tripal_pub_install()

Implementation of hook_install().

Related topics

File

legacy/tripal_pub/tripal_pub.install, line 49
Installation of the publication module

Code

function tripal_pub_install() {
  global $base_path;

  // add loading of the the tripal pub ontology to the job queue
  $obo_path = '{tripal_pub}/files/tpub.obo';
  $obo_id = tripal_insert_obo('Tripal Publication', $obo_path);
  tripal_submit_obo_job(array('obo_id' => $obo_id));

  tripal_pub_add_cvs();
  tripal_pub_add_cvterms();

  // add the custom tables
  tripal_pub_add_custom_tables();

  // set the default vocabularies
  tripal_set_default_cv('pub', 'type_id', 'tripal_pub');
  tripal_set_default_cv('pubprop', 'type_id', 'tripal_pub');
  tripal_set_default_cv('pub_relationship', 'type_id', 'pub_relationship');

}