You are here

function quiz_get_all_quiz_title in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 quiz.module \quiz_get_all_quiz_title()
1 call to quiz_get_all_quiz_title()
questions_export_form in includes/questions_export/questions_export.admin.inc
Implementation of hook_form form to upload questions

File

./quiz.module, line 2725
Quiz Module

Code

function quiz_get_all_quiz_title() {
  $list = array();
  $results = db_query("SELECT nid, title FROM {node} WHERE type = 'quiz'");
  while ($result = db_fetch_object($results)) {
    $list[$result->nid] = substr(check_plain($result->title), 0, 30);

    // truncate the node title if its length is greater than 30 characters
  }
  return $list;
}