function taxonomy_vocabulary_load
Same name in other branches
- 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_load()
Return the vocabulary object matching a vocabulary ID.
Parameters
$vid: The vocabulary's ID.
Return value
The vocabulary object with all of its metadata, if exists, FALSE otherwise. Results are statically cached.
See also
taxonomy_vocabulary_machine_name_load()
21 calls to taxonomy_vocabulary_load()
- EntityCrudHookTestCase::testTaxonomyVocabularyHooks in modules/
simpletest/ tests/ entity_crud_hook_test.test - Tests hook invocations for CRUD operations on taxonomy vocabularies.
- FieldUIManageFieldsTestCase::createField in modules/
field_ui/ field_ui.test - Tests adding a new field.
- ForumTestCase::editForumTaxonomy in modules/
forum/ forum.test - Edits the forum taxonomy.
- ForumTestCase::testForum in modules/
forum/ forum.test - Tests forum functionality through the admin and user interfaces.
- forum_enable in modules/
forum/ forum.install - Implements hook_enable().
1 string reference to 'taxonomy_vocabulary_load'
- ForumTestCase::editForumTaxonomy in modules/
forum/ forum.test - Edits the forum taxonomy.
File
-
modules/
taxonomy/ taxonomy.module, line 1364
Code
function taxonomy_vocabulary_load($vid) {
$vocabularies = taxonomy_vocabulary_load_multiple(array(
$vid,
));
return reset($vocabularies);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.