function tripal_cv_add_obo_ref
2.x tripal_cv.DEPRECATED.inc | tripal_cv_add_obo_ref($name, $path) |
3.x tripal_cv.DEPRECATED.inc | tripal_cv_add_obo_ref($name, $path) |
1.x tripal_cv.api.inc | tripal_cv_add_obo_ref($name, $path) |
Add the obo to the tripal_cv_obo table in the Drupal database
Parameters
$name: The human readable name of this ontology
$path: The file path or URL of the ontology
Return value
Returns the ontology ID
Related topics
5 calls to tripal_cv_add_obo_ref()
- tripal_contact_install in tripal_contact/
tripal_contact.install - Implementation of hook_install().
- tripal_contact_update_6001 in tripal_contact/
tripal_contact.install - Update for Drupal 6.x, Tripal 1.0 This update
- tripal_cv_load_obo_v1_2_file in tripal_cv/
includes/ obo_loader.inc - tripal_cv_load_obo_v1_2_url in tripal_cv/
includes/ obo_loader.inc - tripal_pub_install in tripal_pub/
tripal_pub.install - Implementation of hook_install().
File
- tripal_cv/
api/ tripal_cv.api.inc, line 874 - Controlled Vocabulary API
Code
function tripal_cv_add_obo_ref($name, $path) {
$record = new stdClass;
$record->name = $name;
$record->path = $path;
drupal_write_record('tripal_cv_obo', $record);
return $record->obo_id;
}