function quiz_stats_menu in Quiz 8.5
Same name and namespace in other branches
- 8.6 modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 8.4 modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 6.4 includes/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 7.6 modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 7 includes/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 7.4 includes/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 7.5 modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 6.x modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
Implements hook_menu().
File
- modules/
quiz_stats/ quiz_stats.module, line 37 - Quiz stats.
Code
function quiz_stats_menu() {
$items['admin/quiz/reports/stats/creator'] = array(
'title' => 'Quiz Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'file' => 'quiz_stats.admin.inc',
'page callback' => 'quiz_stats_get_basic_stats',
'access arguments' => array(
'access author stats',
),
'type' => MENU_NORMAL_ITEM,
);
$items['quiz/%quiz/quiz/statistics'] = array(
'title' => 'Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'file' => 'quiz_stats.admin.inc',
'page callback' => 'quiz_stats_revision_selector_page',
'page arguments' => array(
1,
),
'access callback' => 'quiz_type_confirm',
'access arguments' => array(
1,
'access user stats',
),
'type' => MENU_LOCAL_TASK,
'weight' => 4,
);
$items['quiz/%quiz/quiz/statistics/%'] = array(
'title' => 'Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'file' => 'quiz_stats.admin.inc',
'page callback' => 'quiz_stats_get_adv_stats',
'page arguments' => array(
4,
),
'access callback' => 'quiz_stats_validate_vid',
'access arguments' => array(
1,
4,
),
'type' => MENU_CALLBACK,
'weight' => 4,
);
$items['user/%/stats'] = array(
'title' => 'Result Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'file' => 'quiz_stats.admin.inc',
'page callback' => 'quiz_stats_get_basic_stats',
'page arguments' => array(
1,
),
'access arguments' => array(
'access user stats',
),
'type' => MENU_LOCAL_TASK,
);
$items['user/%/stats/%/view'] = array(
'title' => 'Result Statistics',
'file' => 'quiz_stats.admin.inc',
'page callback' => 'quiz_stats_get_adv_stats',
'page arguments' => array(
3,
1,
),
'access arguments' => array(
'access user stats',
),
'type' => MENU_CALLBACK,
);
return $items;
}