function tripal_feature_add_cvs

2.x tripal_feature.install tripal_feature_add_cvs()
3.x tripal_feature.install tripal_feature_add_cvs()

Add cvs related to publications

1 call to tripal_feature_add_cvs()
tripal_feature_install in legacy/tripal_feature/tripal_feature.install
Implements hook_install().

File

legacy/tripal_feature/tripal_feature.install, line 127
Installation of the feature module

Code

function tripal_feature_add_cvs() {

  // Add cv for relationship types
  tripal_insert_cv(
  'feature_relationship', 
  'Contains types of relationships between features.'
  );

  // The feature_property CV may already exists. It comes with Chado, but
  // we need to  add it just in case it doesn't get added before the feature
  // module is installed. But as of Tripal v3.0 the Chado version of this
  // vocabulary is no longer loaded by default.
  tripal_insert_cv(
  'feature_property', 
  'Stores properties about features'
  );

  // the feature type vocabulary should be the sequence ontology, and even though
  // this ontology should get loaded we will create it here just so that we can
  // set the default vocabulary for the feature.type_id field
  tripal_insert_cv(
  'sequence', 
  'The Sequence Ontology'
  );
}