function _nat_get_vocabularies in Node Auto Term [NAT] 7.2
Same name and namespace in other branches
- 5 nat.module \_nat_get_vocabularies()
- 6.2 nat.module \_nat_get_vocabularies()
- 6 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.
5 calls to _nat_get_vocabularies()
- nat_fields_form in ./
nat.admin.inc - Menu callback: NAT module fields form. @todo This form is something of a mess and could use a little clean-up.
- nat_fields_form_validate in ./
nat.admin.inc - Validate NAT fields form submissions.
- nat_settings_form in ./
nat.admin.inc - Menu callback: NAT module settings form.
- nat_sync_form in ./
nat.admin.inc - Sync the NAT table with the node table for associated vocabularies.
- _nat_add_terms in ./
nat.module - Add node titles as terms into the taxonomy system. @todo Ideas are welcome to allow retaining the hierarchy for vocabularies not present in the node form.
File
- ./
nat.module, line 528 - 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] = $vocabulary;
}
return $vocabularies;
}