function tripal_cv_get_cv_by_name

2.x tripal_cv.DEPRECATED.inc tripal_cv_get_cv_by_name($name)
3.x tripal_cv.DEPRECATED.inc tripal_cv_get_cv_by_name($name)
1.x tripal_cv.api.inc tripal_cv_get_cv_by_name($name)

Retrieve a cv given the cv name

Parameters

$name: The name of the cv to be returned

Return value

The cv object for the specified CV name

Related topics

2 calls to tripal_cv_get_cv_by_name()
tripal_feature_add_ONE_relationship_form in tripal_feature/includes/tripal_feature-relationships.inc
Implements Hook_form() Handles adding of Relationships to Features
tripal_feature_edit_ALL_relationships_form in tripal_feature/includes/tripal_feature-relationships.inc
Implements Hook_form() Handles adding of Properties & Synonyms to Stocks

File

tripal_cv/api/tripal_cv.api.inc, line 111
Controlled Vocabulary API

Code

function tripal_cv_get_cv_by_name($name) {

  $r = tripal_core_chado_select('cv', array('*'), array('name' => $name));

  return $r[0];
}