You are here

public function CourseObjectManual::optionsForm in Course 7

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

Class

CourseObjectManual

Code

public function optionsForm(&$form, &$form_state) {
  parent::optionsForm($form, $form_state);
  $config = $this
    ->getOptions();
  $form['complete_msg'] = array(
    '#type' => 'textfield',
    '#title' => t('Complete message'),
    '#default_value' => $config['complete_msg'],
  );
  $form['failed_msg'] = array(
    '#type' => 'textfield',
    '#title' => t('Failed message'),
    '#default_value' => $config['failed_msg'],
  );
  $form['incomplete_msg'] = array(
    '#type' => 'textfield',
    '#title' => t('Incomplete message'),
    '#default_value' => $config['incomplete_msg'],
  );
}