function course_form_submit in Course 7
Same name and namespace in other branches
- 6 course.module \course_form_submit()
- 7.2 course.module \course_form_submit()
Submit handler for the course node form.
Redirect the user to the outline overview form on new node inserts. Note that this fires after the hook_submit() function above.
1 string reference to 'course_form_submit'
- course_field_attach_form in ./
course.module - Implements hook_form_alter().
File
- ./
course.module, line 1134 - course.module Core functionality for Courses.
Code
function course_form_submit($form, &$form_state) {
drupal_set_message(t('Add new items to your course outline using the form below.'));
$form_state['redirect'] = 'node/' . $form_state['nid'] . '/course-outline';
}