You are here

function _nat_get_vocabularies in Node Auto Term [NAT] 7

Same name and namespace in other branches
  1. 5 nat.module \_nat_get_vocabularies()
  2. 6.2 nat.module \_nat_get_vocabularies()
  3. 6 nat.module \_nat_get_vocabularies()
  4. 7.2 nat.module \_nat_get_vocabularies()

Retrieve all vocabularies.

Return value

$vocabularies An associative array of vocabulary IDs to vocabulary names.

4 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.

File

./nat.module, line 526
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;
}