You are here

function ajax_quiz_menu in Quiz 7

Same name and namespace in other branches
  1. 8.4 modules/ajax_quiz/ajax_quiz.module \ajax_quiz_menu()
  2. 6.6 includes/ajax_quiz/ajax_quiz.module \ajax_quiz_menu()
  3. 6.4 includes/ajax_quiz/ajax_quiz.module \ajax_quiz_menu()
  4. 7.6 modules/ajax_quiz/ajax_quiz.module \ajax_quiz_menu()
  5. 7.4 includes/ajax_quiz/ajax_quiz.module \ajax_quiz_menu()

Implements hook_menu().

File

includes/ajax_quiz/ajax_quiz.module, line 46

Code

function ajax_quiz_menu() {
  $items = array();
  $items['node/%quiz_type_access/ajax-quiz'] = array(
    'title' => 'Take by AJAX',
    'file' => 'ajax_quiz.admin.inc',
    'page callback' => 'ajax_quiz_instruction',
    'page arguments' => array(
      1,
    ),
    'access arguments' => array(
      'access ajax quiz',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}