taxonomy_vocabulary_load

Versions
6 – 7
taxonomy_vocabulary_load($vid)

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.

▾ 13 functions call taxonomy_vocabulary_load()

forum_enable in modules/forum/forum.install
forum_node_view in modules/forum/forum.module
Implement hook_node_view().
forum_overview in modules/forum/forum.admin.inc
Returns an overview list of existing forums and containers
hook_mail in modules/system/system.api.php
Prepare a message based on parameters; called from drupal_mail().
taxonomy_autocomplete_validate in modules/taxonomy/taxonomy.module
FAPI function to validate taxonomy term autocomplete element.
taxonomy_form_term in modules/taxonomy/taxonomy.admin.inc
Form function for the term edit form.
taxonomy_help in modules/taxonomy/taxonomy.module
Implement hook_help().
taxonomy_term_save in modules/taxonomy/taxonomy.module
Save a term object to the database.
taxonomy_tokens in modules/taxonomy/taxonomy.tokens.inc
Implement hook_tokens().
taxonomy_vocabulary_confirm_delete in modules/taxonomy/taxonomy.admin.inc
Form builder for the vocabulary delete confirmation form.
taxonomy_vocabulary_confirm_reset_alphabetical in modules/taxonomy/taxonomy.admin.inc
Form builder to confirm resetting a vocabulary to alphabetical order.
taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
Delete a vocabulary.
template_preprocess_forums in modules/forum/forum.module
Process variables for forums.tpl.php

Code

modules/taxonomy/taxonomy.module, line 851

<?php
function taxonomy_vocabulary_load($vid) {
  return reset(taxonomy_vocabulary_load_multiple(array($vid)));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.