function quiz_perm in Quiz 6.4
Same name and namespace in other branches
- 5.2 quiz.module \quiz_perm()
- 5 quiz.module \quiz_perm()
- 6.6 quiz.module \quiz_perm()
- 6.2 quiz.module \quiz_perm()
- 6.3 quiz.module \quiz_perm()
- 6.5 quiz.module \quiz_perm()
Implementation of hook_perm().
File
- ./
quiz.module, line 80 - Quiz Module
Code
function quiz_perm() {
return array(
// Configure quiz:
'administer quiz configuration',
// Managing quizzes:
'access quiz',
'create quiz',
'edit own quiz',
'edit any quiz',
'delete any quiz',
'delete own quiz',
// viewing results:
'view any quiz results',
'view own quiz results',
'view results for own quiz',
// deleting results:
'delete any quiz results',
'delete results for own quiz',
// scoring:
'score any quiz',
'score own quiz',
// Allow a quiz question to be viewed outside of a test.
'view quiz question outside of a quiz',
// Allow the user to see the correct answer, when viewed outside a quiz
'view any quiz question correct response',
// Allows users to pick a name for their questions. Otherwise this is auto
// generated.
'edit question titles',
// Allow users to assign an action to be performed when a user has completed
// a quiz:
'assign any action to quiz events',
// Control revisioning, only assign this permission to users who understand
// who permissions work. Note: If a quiz or question is changed and not
// revisioned you will also change existing result reports.
'manual quiz revisioning',
);
}