function _nat_get_vocabularies in Node Auto Term [NAT] 5
Same name and namespace in other branches
- 6.2 nat.module \_nat_get_vocabularies()
- 6 nat.module \_nat_get_vocabularies()
- 7.2 nat.module \_nat_get_vocabularies()
- 7 nat.module \_nat_get_vocabularies()
Retrieve all vocabularies.
Return value
$vocabularies An associative array of vocabulary IDs to vocabulary names.
2 calls to _nat_get_vocabularies()
- nat_settings_form in ./
nat.module - Menu callback: NAT module settings form.
- nat_sync_form in ./
nat.module - Sync the NAT table with the node table for associated vocabularies.
File
- ./
nat.module, line 541 - NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.
Code
function _nat_get_vocabularies() {
$vocabularies = taxonomy_get_vocabularies();
foreach ($vocabularies as $id => $vocabulary) {
$vocabularies[$id] = check_plain($vocabulary->name);
}
return $vocabularies;
}