You are here

function og_quiz_menu_alter in OG Quiz 7

Implements hook_menu_alter().

File

./og_quiz.module, line 11
Module hooks and custom logic.

Code

function og_quiz_menu_alter(&$items) {
  $items['node/%node/take']['access callback'] = 'og_quiz_take_access';
  $items['node/%node/results']['access callback'] = 'og_quiz_access_results';
  $items['node/%node/results/%quiz_rid']['access callback'] = 'og_quiz_access_results';
  $items['user/%/myresults']['page callback'] = 'og_quiz_get_user_results';
  $items['user/%/myresults']['access callback'] = 'og_quiz_user_results_access';
  $items['user/quiz/%/userresults']['access callback'] = 'og_quiz_access_my_result';
}