You are here

public function CourseObjectManual::optionsForm in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_object_manual/course_object_manual.classes.inc \CourseObjectManual::optionsForm()
  2. 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

CourseObjectManual

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'],
  );
}