Skip to content
Snippets Groups Projects
Commit 9c6cd13d authored by falcon's avatar falcon
Browse files

#816054 reported by ratinakage: Fixed: Make it easier to find the result export page

parent 2dc2ba61
No related branches found
No related tags found
No related merge requests found
......@@ -35,9 +35,9 @@ function questions_export_perm() {
function questions_export_menu() {
$items['admin/quiz/import_export'] = array(
'title' => 'Import and export of quiz',
'title' => 'Import and export',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('export questions', 'import questions'),
'access arguments' => array('export questions', 'import questions', 'export results'),
'access callback' => 'quiz_access_multi_or',
'type' => MENU_NORMAL_ITEM,
'file' => 'system.admin.inc',
......
......@@ -35,9 +35,9 @@ function questions_import_perm() {
function questions_import_menu() {
$items = array();
$items['admin/quiz/import_export'] = array(
'title' => 'Import and export of quiz',
'title' => 'Import and export',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('export questions', 'import questions'),
'access arguments' => array('export questions', 'import questions', 'export results'),
'access callback' => 'quiz_access_multi_or',
'type' => MENU_NORMAL_ITEM,
'file' => 'system.admin.inc',
......
......@@ -47,5 +47,23 @@ function results_export_menu() {
'access arguments' => array('export results'),
'type' => MENU_CALLBACK,
);
$items['admin/quiz/import_export'] = array(
'title' => 'Import and export',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('export questions', 'import questions', 'export results'),
'access callback' => 'quiz_access_multi_or',
'type' => MENU_NORMAL_ITEM,
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/quiz/import_export/results_export'] = array(
'title' => 'Export @quiz results',
'title arguments' => array('@quiz' => QUIZ_NAME),
'page callback' => 'quiz_admin_quizzes',
'access arguments' => array('export results'),
'type' => MENU_NORMAL_ITEM,
'file' => 'quiz.admin.inc',
'file path' => drupal_get_path('module', 'quiz'),
);
return $items;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment