You are here

public function CourseObjectQuiz::optionsForm in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::optionsForm()
  2. 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::optionsForm()

Add an option only pertinent to quiz?

Overrides CourseObjectNode::optionsForm

File

modules/course_quiz/course_quiz.classes.inc, line 67

Class

CourseObjectQuiz

Code

public function optionsForm(&$form, &$form_state) {
  parent::optionsForm($form, $form_state);
  $defaults = $this
    ->getOptions();
  $form['grading']['passing_grade'] = array(
    '#title' => t('Passing grade'),
    '#type' => 'textfield',
    '#size' => 4,
    '#default_value' => $defaults['passing_grade'],
    '#description' => t('The user will not be able to proceed past this object unless this grade is met.'),
  );
}