You are here

function short_answer_menu in Quiz 6.5

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.4 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 24
The main file for short_answer.

Code

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

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