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