123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- function tripal_cv_disable() {
-
- require_once("tripal_cv.views_default.inc");
- $views = tripal_cv_views_default_views();
- foreach (array_keys($views) as $view_name) {
- tripal_disable_view($view_name,FALSE,array('suppress_error' => TRUE));
- }
- }
- function tripal_cv_requirements($phase) {
- $requirements = array();
- if ($phase == 'install') {
-
- if (!$GLOBALS["chado_is_installed"]) {
- $requirements ['tripal_cv'] = array(
- 'title' => "tripal_cv",
- 'value' => "ERROR: Chado must be installed before this module can be enabled",
- 'severity' => REQUIREMENT_ERROR,
- );
- }
- }
- return $requirements;
- }
- function tripal_cv_install() {
- }
- function tripal_cv_uninstall() {
- }
- function tripal_cv_schema() {
- $schema['tripal_cv_defaults'] = tripal_chado_tripal_cv_defaults_schema();
- return $schema;
- }
- function tripal_chado_tripal_cv_defaults_schema() {
- return array(
- 'fields' => array(
- 'cv_default_id' => array(
- 'type' => 'serial',
- 'unsigned' => TRUE,
- 'not null' => TRUE
- ),
- 'table_name' => array(
- 'type' => 'varchar',
- 'length' => 128,
- 'not null' => TRUE,
- ),
- 'field_name' => array(
- 'type' => 'varchar',
- 'length' => 128,
- 'not null' => TRUE,
- ),
- 'cv_id' => array(
- 'type' => 'int',
- 'not null' => TRUE,
- )
- ),
- 'indexes' => array(
- 'tripal_cv_defaults_idx1' => array('table_name', 'field_name'),
- ),
- 'unique keys' => array(
- 'tripal_cv_defaults_unq1' => array('table_name', 'field_name', 'cv_id'),
- ),
- 'primary key' => array('cv_default_id')
- );
- }
|