You are here

function quiz_perm in Quiz 6.6

Same name and namespace in other branches
  1. 5.2 quiz.module \quiz_perm()
  2. 5 quiz.module \quiz_perm()
  3. 6.2 quiz.module \quiz_perm()
  4. 6.3 quiz.module \quiz_perm()
  5. 6.4 quiz.module \quiz_perm()
  6. 6.5 quiz.module \quiz_perm()

Implementation of hook_perm().

File

./quiz.module, line 82
Quiz Module

Code

function quiz_perm() {
  return array(
    QUIZ_PERM_ADMIN_CONFIG,
    // Administrating quizzes:
    'administer quiz',
    // Managing quizzes:
    'access quiz',
    'create quiz',
    'edit own quiz',
    'edit any quiz',
    'delete any quiz',
    'delete own quiz',
    // Managing results:
    'view user results',
    'view own results',
    // Allow a quiz question to be viewed outside of a test.
    'view quiz question outside of a quiz',
    // Allow someone to see the answers to a quiz question
    'view quiz question solutions',
  );
}