You are here

function course_object_options_form_validate in Course 6

Form validation handler for course_object_options_form().

See also

course_object_options_form_submit()

File

./course.module, line 504
course.module Core functionality for Courses.

Code

function course_object_options_form_validate(&$form, &$form_state) {
  if ($form_state['values']['uniqid']) {
    $nid = $form_state['values']['nid'];

    // Get course object from session/database.
    $courseObject = course_object_load($form_state['values']['uniqid']);
    $courseObject
      ->setId($form_state['values']['uniqid']);
    $courseObject
      ->optionsValidate($form, $form_state);
  }
}