function taxonomy_variable_vocabulary_vid_list in Variable 7
Same name and namespace in other branches
- 7.2 includes/taxonomy.variable.inc \taxonomy_variable_vocabulary_vid_list()
Options callback for vocabulary
1 string reference to 'taxonomy_variable_vocabulary_vid_list'
- taxonomy_variable_type_info in includes/
taxonomy.variable.inc - Implements hook_variable_type_info()
File
- includes/
taxonomy.variable.inc, line 25 - Variable API module. Definition for Drupal core variables
Code
function taxonomy_variable_vocabulary_vid_list($variable, $options) {
static $list;
if (!isset($list)) {
foreach (taxonomy_get_vocabularies() as $vocab) {
$list[$vocab->vid] = $vocab->name;
}
}
return $list;
}