You are here

public function CourseObjectSignup::optionsSubmit in Course 7

Same name and namespace in other branches
  1. 6 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::optionsSubmit()
  2. 7.2 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::optionsSubmit()

Set a specialized instance ID.

Either the course node ID, or another signup node ID.

Overrides CourseObjectNode::optionsSubmit

File

modules/course_signup/course_signup.classes.inc, line 43

Class

CourseObjectSignup

Code

public function optionsSubmit(&$form, &$form_state) {
  if (isset($form_state['values']['instance'])) {
    if (!$form_state['values']['instance']) {
      $form_state['values']['instance'] = $this
        ->getCourseNid();
    }
  }
  parent::optionsSubmit($form, $form_state);
}