function tripal_natural_diversity_add_cvterms
2.x tripal_natural_diversity.install | tripal_natural_diversity_add_cvterms() |
3.x tripal_natural_diversity.install | tripal_natural_diversity_add_cvterms() |
1.x tripal_natural_diversity.install | tripal_natural_diversity_add_cvterms() |
2 calls to tripal_natural_diversity_add_cvterms()
- tripal_natural_diversity_install in tripal_natural_diversity/
tripal_natural_diversity.install - Implementation of hook_install().
- tripal_natural_diversity_update_6100 in tripal_natural_diversity/
tripal_natural_diversity.install - Update for Drupal 6.x, Tripal 1.1, Natural Diversity Module 1.1 This update adds new cvterms for experiment types
File
- tripal_natural_diversity/
tripal_natural_diversity.install, line 40 - Implements hooks from the Schema API
Code
function tripal_natural_diversity_add_cvterms() {
// add cvterms for the nd_experiment_types
tripal_cv_add_cvterm(array('name' => 'Genotyping', 'def' => 'An experiment where genotypes of individuals are identified.'),
'nd_experiment_types', 0, 1, 'tripal');
tripal_cv_add_cvterm(array('name' => 'Phenotyping', 'def' => 'An experiment where phenotypes of individuals are identified.'),
'nd_experiment_types', 0, 1, 'tripal');
tripal_cv_add_cvterm(array('name' => 'Location', 'def' => 'The name of the location.'),
'nd_geolocation_property', 0, 1, 'tripal');
}