function hook_vocab_get_term_children
3.x tripal.terms.api.inc | hook_vocab_get_term_children($vocabulary, $accession) |
Hook used by the default term storage backend to provide children for a term.
This hook is called by the tripal_entity module to retrieve a list of children for a term from the storage backend. It must return an array of terms where each term contains the same structure as that of the hook_vocab_get_term().
Parameters
$vocabulary: The vocabulary of the vocabulary in which the term is found.
$accession: The unique identifier (accession) for this term.
Return value
An array of terms where each term contains the same structure as that of the hook_vocab_get_term(), or an empty array if no children are present.
Related topics
1 function implements hook_vocab_get_term_children()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- tripal_chado_vocab_get_term_children in tripal_chado/
includes/ tripal_chado.vocab_storage.inc - Implements hook_vocab_get_term_children().
File
- tripal/
api/ tripal.terms.api.inc, line 215 - Provides an application programming interface (API) for working with controlled vocaublary terms.
Code
function hook_vocab_get_term_children($vocabulary, $accession) {
// See the tripal_chado_vocab_get_term_children() function for an example.
}