public function CourseObjectQuiz::optionsForm in Course 6
Same name and namespace in other branches
- 7.2 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::optionsForm()
- 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
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.'),
);
}