You are here

function regcode_get_vocab_terms in Registration codes 7

Same name and namespace in other branches
  1. 8 regcode.module \regcode_get_vocab_terms()
  2. 6.2 regcode.module \regcode_get_vocab_terms()
  3. 7.2 regcode.module \regcode_get_vocab_terms()

Get a list of terms from the registration code vocabulary.

7 calls to regcode_get_vocab_terms()
regcode_admin_create in ./regcode.admin.php
Create registration codes form.
regcode_ie_admin_import in regcode_ie/regcode_ie.module
Import registration codes form.
regcode_mailer_mail_action_form in regcode_mailer/regcode_mailer.module
Form for the mail action.
regcode_og_create in regcode_og/regcode_og.module
Form: Create form for og assignment rules.
regcode_og_settings in regcode_og/regcode_og.module
Form: Settings form for an og assignment rule.

... See full list

File

./regcode.module, line 761
Main functionality and hooks of regcode module.

Code

function regcode_get_vocab_terms() {
  $tree = taxonomy_get_tree(variable_get('regcode_vocabulary', 1));
  $terms = array();
  foreach ($tree as $term) {
    $terms[$term->tid] = $term->name;
  }
  return $terms;
}