You are here

public function CourseObjectAccessGrade::optionsDefinition in Course 6

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

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

Overrides CourseHandler::optionsDefinition

File

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

Class

CourseObjectAccessGrade

Code

public function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults += array(
    'course_grade' => NULL,
    'course_grade_hidden' => NULL,
  );
  return $defaults;
}