function taxonomy_vocabulary_load
7.x taxonomy.module | taxonomy_vocabulary_load($vid) |
6.x taxonomy.module | taxonomy_vocabulary_load($vid, $reset = FALSE) |
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()
19 calls to taxonomy_vocabulary_load()
- EntityCrudHookTestCase::testTaxonomyVocabularyHooks in drupal-7.x/
modules/ simpletest/ tests/ entity_crud_hook_test.test - Tests hook invocations for CRUD operations on taxonomy vocabularies.
- FieldUIManageFieldsTestCase::createField in drupal-7.x/
modules/ field_ui/ field_ui.test - Tests adding a new field.
- ForumTestCase::editForumTaxonomy in drupal-7.x/
modules/ forum/ forum.test - Edits the forum taxonomy.
- forum_enable in drupal-7.x/
modules/ forum/ forum.install - Implements hook_enable().
- forum_node_view in drupal-7.x/
modules/ forum/ forum.module - Implements hook_node_view().
1 string reference to 'taxonomy_vocabulary_load'
- ForumTestCase::editForumTaxonomy in drupal-7.x/
modules/ forum/ forum.test - Edits the forum taxonomy.
File
- drupal-7.x/
modules/ taxonomy/ taxonomy.module, line 1351 - Enables the organization of content into categories.
Code
function taxonomy_vocabulary_load($vid) {
$vocabularies = taxonomy_vocabulary_load_multiple(array($vid));
return reset($vocabularies);
}