You are here

function quiz_get_all_quiz_title in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 quiz.module \quiz_get_all_quiz_title()

Return value

This function returns an array of quiz nodes title with nid ndex.

2 calls 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
questions_import_form in includes/questions_import/questions_import.admin.inc
@function Implementation of hook_form() provides form to upload questions

File

./quiz.module, line 2744
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;
}