You are here

function short_answer_permission in Quiz 6.x

Same name and namespace in other branches
  1. 8.6 question_types/quiz_short_answer/quiz_short_answer.module \short_answer_permission()
  2. 8.4 question_types/short_answer/short_answer.module \short_answer_permission()
  3. 8.5 question_types/quiz_short_answer/quiz_short_answer.module \short_answer_permission()
  4. 7.6 question_types/short_answer/short_answer.module \short_answer_permission()
  5. 7 question_types/short_answer/short_answer.module \short_answer_permission()
  6. 7.4 question_types/short_answer/short_answer.module \short_answer_permission()
  7. 7.5 question_types/short_answer/short_answer.module \short_answer_permission()

Implements hook_permission().

File

question_types/quiz_short_answer/quiz_short_answer.module, line 29
Short_answer question type for the Quiz module.

Code

function short_answer_permission() {
  return [
    'use regex for short answer' => [
      'title' => t('use regex for short answer'),
      'description' => t('Use PHP "regular expressions" the advanced option for automated response evaluation.'),
      'restrict access' => TRUE,
    ],
  ];
}