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().
Related topics
File
- tripal_contact/
tripal_contact.install, line 52 - Handles install, uninstall, disable and enable functionality including database tables.
Code
function tripal_contact_install() {
// 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 = '{tripal_contact}/files/tcontact.obo';
$obo_id = tripal_insert_obo('Tripal Contacts', $obo_path);
tripal_submit_obo_job(array('obo_id' => $obo_id));
// Add cvterms for relationship types.
tripal_contact_add_cvs();
tripal_contact_add_cvterms();
// Set the default vocabularies.
tripal_set_default_cv('contact', 'type_id', 'tripal_contact');
tripal_set_default_cv('contactprop', 'type_id', 'tripal_contact');
tripal_set_default_cv('contact_relationship', 'type_id', 'contact_relationship');
}