function tripal_contact_add_cvs

2.x tripal_contact.install tripal_contact_add_cvs()
3.x tripal_contact.install tripal_contact_add_cvs()

Adds any cvs needed by this module.

Related topics

1 call to tripal_contact_add_cvs()
tripal_contact_install in tripal_contact/tripal_contact.install
Implementation of hook_install().

File

tripal_contact/tripal_contact.install, line 92
Handles install, uninstall, disable and enable functionality including database tables.

Code

function tripal_contact_add_cvs() {

  // Add the cv for contact properties. This is a default vocabulary in the event
  // that a user does not want to use the tripal_contact vocabulary
  tripal_insert_cv(
  'contact_property', 
  'Contains properties for contacts. This can be used if the tripal_contact vocabulary (which is default for contacts in Tripal) is not desired.'
  );

  // add the cv for the contact type. This is a default vocabulary in the event
  // that a user does not want to use the tripal_contact vocabulary
  tripal_insert_cv(
  'contact_type', 
  'Contains types of contacts. This can be used if the tripal_contact vocabulary (which is default for contacts in Tripal) is not desired.'
  );

  // Add the cv for the tripal_contact vocabulary which is loaded via the OBO
  tripal_insert_cv(
  'tripal_contact', 
  'A heirarchical set of terms for describing a contact. It is intended to be used as the default vocabularies in Tripal for contact types and contact properties.'
  );

  // add the cv for contact relationships
  tripal_insert_cv(
  'contact_relationship', 
  'Contains types of relationships between contacts.'
  );

}