public function CourseObjectCertificate::optionsForm in Course 7.2
Same name and namespace in other branches
- 6 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 19
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,
);
}