You are here

public function CourseObjectCertificate::optionsForm in Course 6

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

Default options form for all course objects.

Overrides CourseObject::optionsForm

File

modules/course_certificate/course_certificate.classes.inc, line 18

Class

CourseObjectCertificate

Code

public function optionsForm(&$form, &$form_state) {
  parent::optionsForm($form, $form_state);
  $options = $this
    ->getOptions();
  $form['certificate_node'] = array(
    '#title' => 'Use node settings from Certificate',
    '#type' => 'checkbox',
    '#default_value' => $options['certificate_node'],
    '#description' => 'This will direct the user to node/' . $this
      ->getCourseNid() . '/certificate',
    '#disabled' => TRUE,
  );
}