You are here

function _taxonomy_menu_list_vocabs in Taxonomy menu 6.3

get a list of the vocab names

Return value

array of vocab objects

File

./taxonomy_menu.database.inc, line 72
Taxonomy Menu functions that access the db

Code

function _taxonomy_menu_list_vocabs() {
  $output = array();
  $result = db_query('SELECT vid, name FROM {vocabulary}');
  while ($data = db_fetch_object($result)) {
    $output[] = $data;
  }
  return $output;
}