public function CourseObjectCertificate::optionsForm in Course 7
Same name and namespace in other branches
- 6 modules/course_certificate/course_certificate.classes.inc \CourseObjectCertificate::optionsForm()
- 7.2 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' => t('Use node settings from Certificate'),
'#type' => 'checkbox',
'#default_value' => $options['certificate_node'],
'#description' => t('This will direct the user to node/%course/certificate'),
'#disabled' => TRUE,
);
}