You are here

function _regcode_get_taxonomy_vocabularies in Registration codes 7

Same name and namespace in other branches
  1. 6.2 regcode.admin.php \_regcode_get_taxonomy_vocabularies()
  2. 7.2 regcode.admin.inc \_regcode_get_taxonomy_vocabularies()

Return a list of vocabularies.

1 call to _regcode_get_taxonomy_vocabularies()
regcode_admin_settings in ./regcode.admin.php
Settings page form.

File

./regcode.admin.php, line 282
Functions and pages needed for the admin UI of regcode module.

Code

function _regcode_get_taxonomy_vocabularies() {
  $vocabularies = taxonomy_get_vocabularies();
  $options = array();
  foreach ($vocabularies as $voc) {
    $options[$voc->vid] = check_plain($voc->name);
  }
  return $options;
}