You are here

function course_enrollment_form_submit in Course 7

Same name and namespace in other branches
  1. 7.2 course.module \course_enrollment_form_submit()

Course enrollment submit handler.

1 string reference to 'course_enrollment_form_submit'
course_enrollment_form in ./course.module
Course enrollment edit form.

File

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

Code

function course_enrollment_form_submit($form, &$form_state) {
  $enrollment = $form_state['course_enrollment'];
  field_attach_submit('course_enrollment', $enrollment, $form, $form_state);
  $enrollment->timestamp = REQUEST_TIME;
  entity_save('course_enrollment', $enrollment);
}