You are here

function short_answer_permission in Quiz 8.4

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

Implements hook_permission().

File

question_types/short_answer/short_answer.module, line 24
The main file for short_answer.

Code

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