public function CourseObjectManual::optionsForm in Course 6
Same name and namespace in other branches
- 7.2 modules/course_object_manual/course_object_manual.classes.inc \CourseObjectManual::optionsForm()
- 7 modules/course_object_manual/course_object_manual.classes.inc \CourseObjectManual::optionsForm()
Default options form for all course objects.
Overrides CourseObject::optionsForm
File
- modules/
course_object_manual/ course_object_manual.classes.inc, line 44
Class
Code
public function optionsForm(&$form, &$form_state) {
parent::optionsForm($form, $form_state);
$config = $this
->getOptions();
$form['complete_msg'] = array(
'#type' => 'textfield',
'#title' => 'Complete message',
'#default_value' => $config['complete_msg'],
);
$form['failed_msg'] = array(
'#type' => 'textfield',
'#title' => 'Failed message',
'#default_value' => $config['failed_msg'],
);
$form['incomplete_msg'] = array(
'#type' => 'textfield',
'#title' => 'Incomplete message',
'#default_value' => $config['incomplete_msg'],
);
}