function tripal_get_cvterm_select_options

2.x tripal_cv.api.inc tripal_get_cvterm_select_options($cv_id)
3.x tripal_chado.module.DEPRECATED.api.inc tripal_get_cvterm_select_options($cv_id, $rel_type = false)

Create an options array to be used in a form element which provides a list of all chado cvterms.

Parameters

$cv_id: The chado cv_id; only cvterms with the supplied cv_id will be returnedl.

$rel_type: Set to TRUE if the terms returned should only be relationship types in the vocabulary. This is useful for creating drop-downs of terms used for relationship linker tables.

Return value

An associative array with the cvterm_id's as keys. The first element in the array has a key of '0' and a value of 'Select a Type'.

5 calls to tripal_get_cvterm_select_options()
chado_library_form in legacy/tripal_library/includes/tripal_library.chado_node.inc
Implements hook_form().
chado_organism_form in legacy/tripal_organism/includes/tripal_organism.chado_node.inc
Implement hook_form().
chado_project_form in legacy/tripal_project/includes/tripal_project.chado_node.inc
Implementation of hook_form().
tripal_cv_get_cvterm_options in legacy/tripal_cv/api/tripal_cv.DEPRECATED.inc
tripal_get_cvterm_default_select_options in legacy/tripal_cv/api/tripal_cv.api.inc
Create an options array to be used in a form element which provides a list of all chado cvterms. Unlike the tripal_get_cvterm_select_option, this function retreives the cvterms using the default vocabulary set for a given table and field. It will…
1 string reference to 'tripal_get_cvterm_select_options'

File

tripal_chado/api/modules/tripal_chado.module.DEPRECATED.api.inc, line 205
These api functions are deprecated, if your site is currently using them please update your code with the newer tripal_chado functions.

Code

function tripal_get_cvterm_select_options($cv_id, $rel_type = false) {
  chado_get_cvterm_select_options($cv_id, $rel_type);
}