function quiz_stats_menu in Quiz 8.4
Same name and namespace in other branches
- 8.6 modules/quiz_stats/quiz_stats.module \quiz_stats_menu()
- 8.5 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.',
'route_name' => 'quiz_stats.quiz_statistics',
'type' => MENU_NORMAL_ITEM,
);
$items['node/%node/statistics'] = array(
'title' => 'Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'route_name' => 'quiz_stats.quiz_statistics_report',
'type' => MENU_LOCAL_TASK,
'weight' => 4,
);
$items['node/%node/statistics/%'] = array(
'title' => 'Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'route_name' => 'quiz_stats.quiz_statistics_page',
'type' => MENU_CALLBACK,
'weight' => 4,
);
$items['user/%/stats'] = array(
'title' => 'Result Statistics',
'description' => 'Generates a report on quiz results for quiz creators.',
'route_name' => 'quiz_stats.quiz_user_statistics',
'type' => MENU_LOCAL_TASK,
);
$items['user/%/stats/%/view'] = array(
'title' => 'Result Statistics',
'route_name' => 'quiz_stats.quiz_user_statistics_view',
'type' => MENU_CALLBACK,
);
return $items;
}