You are here

function quiz_menu in Quiz 6.x

Same name and namespace in other branches
  1. 8.6 quiz.module \quiz_menu()
  2. 8.4 quiz.module \quiz_menu()
  3. 8.5 quiz.module \quiz_menu()
  4. 5.2 quiz.module \quiz_menu()
  5. 5 quiz.module \quiz_menu()
  6. 6.6 quiz.module \quiz_menu()
  7. 6.2 quiz.module \quiz_menu()
  8. 6.3 quiz.module \quiz_menu()
  9. 6.4 quiz.module \quiz_menu()
  10. 6.5 quiz.module \quiz_menu()
  11. 7.6 quiz.module \quiz_menu()
  12. 7 quiz.module \quiz_menu()
  13. 7.4 quiz.module \quiz_menu()
  14. 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;
}