You are here

function quiz_categorized_term_ahah in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \quiz_categorized_term_ahah()
  2. 6.4 quiz.admin.inc \quiz_categorized_term_ahah()
  3. 7.6 quiz.admin.inc \quiz_categorized_term_ahah()
  4. 7.4 quiz.admin.inc \quiz_categorized_term_ahah()
  5. 7.5 quiz.admin.inc \quiz_categorized_term_ahah()

Ahah function for finding terms...

Parameters

string $start: The start of the string we are looking for

1 string reference to 'quiz_categorized_term_ahah'
quiz_menu in ./quiz.module
Implements hook_menu().

File

./quiz.admin.inc, line 761
Administrator interface for Quiz module.

Code

function quiz_categorized_term_ahah($start) {
  $terms = _quiz_search_terms($start, $start == '*');
  $to_json = array();
  foreach ($terms as $key => $value) {
    $to_json["{$value} (id:{$key})"] = $value;
  }
  drupal_json_output($to_json);
}