function tripal_contact_install
2.x tripal_contact.install | tripal_contact_install() |
3.x tripal_contact.install | tripal_contact_install() |
1.x tripal_contact.install | tripal_contact_install() |
Implementation of hook_install().
File
- tripal_contact/
tripal_contact.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_contact_install() {
// create the module's data directory
tripal_create_moddir('tripal_contact');
// add the tripal_contact table to Drupal
drupal_install_schema('tripal_contact');
// add the contactprop table to Chado
tripal_contact_add_custom_tables();
// add loading of the the tripal contact ontology to the job queue
$obo_path = realpath('./') . '/' . drupal_get_path('module', 'tripal_contact') . '/files/tcontact.obo';
$obo_id = tripal_cv_add_obo_ref('Tripal Contacts', $obo_path);
tripal_cv_submit_obo_job($obo_id);
}