4.6.x taxonomy.module taxonomy_get_vocabulary($vid)
4.7.x taxonomy.module taxonomy_get_vocabulary($vid)
5.x taxonomy.module taxonomy_get_vocabulary($vid)

Return the vocabulary object matching a vocabulary ID.

10 calls to taxonomy_get_vocabulary()
forum_view in modules/forum.module
Implementation of hook_view().
taxonomy_admin_vocabulary_edit in modules/taxonomy.module
Page to add or edit a vocabulary
taxonomy_del_vocabulary in modules/taxonomy.module
taxonomy_form in modules/taxonomy.module
Generate a form element for selecting terms from a vocabulary.
taxonomy_form_term in modules/taxonomy.module

... See full list


modules/taxonomy.module, line 1007
Enables the organization of content into categories.


function taxonomy_get_vocabulary($vid) {
  static $vocabularies = array();

  if (!array_key_exists($vid, $vocabularies)) {
    $result = db_query('SELECT v.*, n.type FROM {vocabulary} v LEFT JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE v.vid = %d ORDER BY v.weight, v.name', $vid);
    $node_types = array();
    while ($voc = db_fetch_object($result)) {
      $node_types[] = $voc->type;
      $voc->nodes = $node_types;
      $vocabularies[$vid] = $voc;

  return $vocabularies[$vid];


Maxam’s picture

I have issue about taxonomy , i wanted to display published time on taxonomy page , there are many contents , issues is: how can display or solve ?