You are here

public function CourseObjectAccessTiming::optionsDefinition in Course 6

Same name and namespace in other branches
  1. 7.2 plugins/course_object_access/timing.inc \CourseObjectAccessTiming::optionsDefinition()
  2. 7 plugins/course_object_access/timing.inc \CourseObjectAccessTiming::optionsDefinition()

Handlers need to declare their defaults if they have a configuration form.

Overrides CourseHandler::optionsDefinition

File

plugins/course/access/timing.inc, line 13

Class

CourseObjectAccessTiming

Code

public function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults += array(
    'duration' => NULL,
    'release' => NULL,
    'expiration' => NULL,
    'release_hidden' => NULL,
    'expiration_hidden' => NULL,
  );
  return $defaults;
}