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 