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().

File

tripal_pub/tripal_pub.install, line 17
This file contains all the functions which describe and implement drupal database tables needed by this module. This module was developed by Chad N.A. Krilow and Lacey-Anne Sanderson, University of Saskatchewan.

Code

function tripal_pub_install() {

  // create the module's data directory
  tripal_create_moddir('tripal_pub');

  // install the tripal_oub
  drupal_install_schema('tripal_pub');

  // add loading of the the tripal pub ontology to the job queue
  $obo_path = realpath('./') . '/' . drupal_get_path('module', 'tripal_pub') . '/files/tpub.obo';
  $obo_id = tripal_cv_add_obo_ref('Tripal Publication', $obo_path);
  tripal_cv_submit_obo_job($obo_id);

  // add the custom tables
  tripal_pub_add_custom_tables();

}