You are here

function quiz_questions in Quiz 7

Same name and namespace in other branches
  1. 8.4 quiz.admin.inc \quiz_questions()
  2. 5.2 quiz.module \quiz_questions()
  3. 5 quiz.module \quiz_questions()
  4. 6.6 quiz.admin.inc \quiz_questions()
  5. 6.2 quiz.admin.inc \quiz_questions()
  6. 6.3 quiz.admin.inc \quiz_questions()
  7. 6.4 quiz.admin.inc \quiz_questions()
  8. 6.5 quiz.admin.inc \quiz_questions()
  9. 7.6 quiz.admin.inc \quiz_questions()
  10. 7.4 quiz.admin.inc \quiz_questions()

Creates a form for quiz questions.

Handles the manage questions tab.

Parameters

$node: The quiz node we are managing questions for.

Return value

String containing the form.

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

File

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

Code

function quiz_questions($node) {

  // Set page title.
  drupal_set_title($node->title);
  if ($node->randomization < 3) {
    return drupal_render(drupal_get_form('quiz_questions_form', $node));
  }
  else {
    return drupal_render(drupal_get_form('quiz_categorized_form', $node));
  }
}