Get names for all taxonomy vocabularies.
An associative array of objects keyed by vocabulary machine name with information about taxonomy vocabularies. Each object has properties:
function taxonomy_vocabulary_get_names() {
$names =& drupal_static(__FUNCTION__);
if (!isset($names)) {
$names = db_query('SELECT name, machine_name, vid FROM {taxonomy_vocabulary}')
->fetchAllAssoc('machine_name');
}
return $names;
}