You are here

function CourseObjectAccessConditional::optionsValidate in Course 6

Validate?

Overrides CourseHandler::optionsValidate

File

plugins/course/access/conditional.inc, line 71

Class

CourseObjectAccessConditional

Code

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