You are here

function long_answer_menu in Quiz 8.4

Same name and namespace in other branches
  1. 6.6 question_types/long_answer/long_answer.module \long_answer_menu()
  2. 6.3 question_types/long_answer/long_answer.module \long_answer_menu()
  3. 6.4 question_types/long_answer/long_answer.module \long_answer_menu()
  4. 6.5 question_types/long_answer/long_answer.module \long_answer_menu()
  5. 7.6 question_types/long_answer/long_answer.module \long_answer_menu()
  6. 7 question_types/long_answer/long_answer.module \long_answer_menu()
  7. 7.4 question_types/long_answer/long_answer.module \long_answer_menu()

Implements hook_menu().

File

question_types/long_answer/long_answer.module, line 29
This module defines a long answer question type for quizzes.

Code

function long_answer_menu() {
  $items['admin/config/quiz/score-long-answer'] = array(
    'title' => 'Score long answer questions',
    'description' => 'Score the answers from quizzes that use long answer questions.',
    'route_name' => 'long_answer.score_long_answer',
    'type' => MENU_NORMAL_ITEM,
  );

  // Pass vid and rid to this path.
  $items['admin/config/quiz/score-long-answer/%/%'] = array(
    'title' => 'Score long answer response',
    'description' => 'Score a response to a long answer question.',
    'route_name' => 'long_answer.score_long_answer_page',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}