You are here

function short_answer_menu in Quiz 6.4

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

Implementation of hook_menu().

File

question_types/short_answer/short_answer.module, line 31
The main file for short_answer.

Code

function short_answer_menu() {
  $items['admin/quiz/reports/score-short-answer'] = array(
    'title' => 'Score short answer questions',
    'description' => 'Score the answers from quizzes that use short answer questions.',
    'page callback' => 'short_answer_view_unscored',
    'access arguments' => array(
      'score any quiz',
      'score own quiz',
    ),
    'access callback' => 'quiz_access_multi_or',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'short_answer.admin.inc',
  );

  // Pass vid and rid to this path.
  $items['admin/quiz/reports/score-short-answer/%/%'] = array(
    'title' => 'Score short answer response',
    'description' => 'Score a response to a short answer question.',
    'page callback' => 'short_answer_edit_score',
    'page arguments' => array(
      4,
      5,
    ),
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      4,
      5,
    ),
    'access callback' => 'quiz_question_access_to_score',
    'file' => 'short_answer.admin.inc',
  );
  return $items;
}