function og_quiz_og_permission in OG Quiz 7
Implements hook_og_permissions().
File
- ./
og_quiz.module, line 101 - Module hooks and custom logic.
Code
function og_quiz_og_permission() {
return array(
'access quiz' => array(
'title' => t('Take quiz'),
'description' => t('Can access (take) all quizzes.'),
),
'view any quiz results' => array(
'title' => t('View any quiz results'),
'description' => t('Can view results for all quizzes and users.'),
),
'view own quiz results' => array(
'title' => t('View own quiz results'),
'description' => t('Quiz takers can view their own results, also when quiz is not passed.'),
),
'view results for own quiz' => array(
'title' => t('View results for own quiz'),
'description' => t('Quiz makers can view results for their own quizzes.'),
),
'delete any quiz results' => array(
'title' => t('Delete any quiz results'),
),
'delete results for own quiz' => array(
'title' => t('Delete results for own quiz'),
),
'score any quiz' => array(
'title' => t('Score any quiz'),
),
'score own quiz' => array(
'title' => t('Score own quiz'),
),
'score taken quiz answer' => array(
'title' => t('score taken quiz answer'),
'description' => t('Allows attendee to score questions needing manual evaluation.'),
),
);
}