123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?php
- function tripal_natural_diversity_disable() {
-
- require_once("tripal_natural_diversity.views_default.inc");
- $views = tripal_natural_diversity_views_default_views();
- foreach (array_keys($views) as $view_name) {
- tripal_disable_view($view_name,FALSE,array('suppress_error' => TRUE));
- }
- }
- function tripal_natural_diversity_requirements($phase) {
- $requirements = array();
- if ($phase == 'install') {
-
- if (!$GLOBALS["chado_is_installed"]) {
- $requirements ['tripal_natural_diversity'] = array(
- 'title' => "tripal_natural_diversity",
- 'value' => "ERROR: Chado must be installed before this module can be enabled",
- 'severity' => REQUIREMENT_ERROR,
- );
- }
- }
- return $requirements;
- }
- function tripal_natural_diversity_install() {
-
- tripal_natural_diversity_add_cvterms();
- }
- function tripal_natural_diversity_uninstall() {
- }
- function tripal_natural_diversity_add_cvterms(){
-
- tripal_insert_cvterm(
- array(
- 'name' => 'Genotyping',
- 'definition' => 'An experiment where genotypes of individuals are identified.',
- 'cv_name' => 'nd_experiment_types',
- 'is_relationship' => 0,
- 'db_name' => 'tripal'
- ),
- array('update_existing' => TRUE)
- );
- tripal_insert_cvterm(
- array(
- 'name' => 'Phenotyping',
- 'definition' => 'An experiment where phenotypes of individuals are identified.',
- 'cv_name' => 'nd_experiment_types',
- 'is_relationship' => 0,
- 'db_name' => 'tripal'
- ),
- array('update_existing' => TRUE)
- );
- tripal_insert_cvterm(
- array(
- 'name' => 'Location',
- 'definition' => 'The name of the location.',
- 'cv_name' => 'nd_geolocation_property',
- 'is_relationship' => 0,
- 'db_name' => 'tripal'
- ),
- array('update_existing' => TRUE)
- );
- }
|