You are here

function questions_import_quiz_node in Quiz 6.3

1 call to questions_import_quiz_node()
questions_import_form in includes/questions_import/questions_import.admin.inc

File

includes/questions_import/questions_import.admin.inc, line 74

Code

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

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