taxonomy_vocabulary_get_names

Versions
7
taxonomy_vocabulary_get_names()

Get names for all taxonomy vocabularies.

Return value

An array of vocabulary ids, names, machine names, keyed by machine name.

Code

modules/taxonomy/taxonomy.module, line 613

<?php
function taxonomy_vocabulary_get_names() {
  $names = db_query('SELECT name, machine_name, vid FROM {taxonomy_vocabulary}')->fetchAllAssoc('machine_name');
  return $names;
}
?>
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.