function quiz_menu in Quiz 6.x
Same name and namespace in other branches
- 8.6 quiz.module \quiz_menu()
- 8.4 quiz.module \quiz_menu()
- 8.5 quiz.module \quiz_menu()
- 5.2 quiz.module \quiz_menu()
- 5 quiz.module \quiz_menu()
- 6.6 quiz.module \quiz_menu()
- 6.2 quiz.module \quiz_menu()
- 6.3 quiz.module \quiz_menu()
- 6.4 quiz.module \quiz_menu()
- 6.5 quiz.module \quiz_menu()
- 7.6 quiz.module \quiz_menu()
- 7 quiz.module \quiz_menu()
- 7.4 quiz.module \quiz_menu()
- 7.5 quiz.module \quiz_menu()
Implements hook_menu().
File
- ./
quiz.module, line 96 - Contains quiz.module
Code
function quiz_menu() {
if (Drupal::moduleHandler()
->moduleExists('devel_generate')) {
$items['admin/config/development/generate/quiz'] = [
'title' => 'Generate quiz',
'description' => 'Generate a given number of quizzes and questions.',
'access arguments' => [
'administer quiz configuration',
],
'page callback' => 'drupal_get_form',
'page arguments' => [
'quiz_generate_form',
],
'file' => 'quiz.devel.inc',
];
}
return $items;
}