You are here

function CourseObjectAccessTiming::optionsValidate in Course 6

Validate?

Overrides CourseHandler::optionsValidate

File

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

Class

CourseObjectAccessTiming

Code

function optionsValidate(&$form, &$values) {
  if (module_exists('duration_element')) {
    $values['duration'] = $values['duration']
      ->to_single_metric('seconds');
  }
}