You are here

function _quiz_userpoints_type in Quiz 7.4

Same name and namespace in other branches
  1. 7.6 quiz.module \_quiz_userpoints_type()
1 call to _quiz_userpoints_type()
quiz_form in ./quiz.module
Implements hook_form().

File

./quiz.module, line 1557
Quiz Module

Code

function _quiz_userpoints_type() {
  $userpoints_terms = taxonomy_get_tree(userpoints_get_vid());
  $userpoints_tids = array(
    0 => t('Select'),
  );
  foreach ($userpoints_terms as $userpoints_term) {
    $userpoints_tids[$userpoints_term->tid] = str_repeat('-', $userpoints_term->depth) . $userpoints_term->name;
  }
  return $userpoints_tids;
}