You are here

public function CourseObjectCertificate::optionsDefinition in Course 7

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

Define configuration elements and their defaults.

Extended classes should call parent::optionsDefinition first to get the parent's configuration.

Overrides CourseObject::optionsDefinition

File

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

Class

CourseObjectCertificate

Code

public function optionsDefinition() {
  $options = parent::optionsDefinition();
  $options['required'] = 0;
  $options['certificate_node'] = 1;
  return $options;
}