You are here

function course_enrollment_form in Course 7

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

Course enrollment edit form.

1 string reference to 'course_enrollment_form'
course_forms in ./course.module
Implements hook_forms().

File

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

Code

function course_enrollment_form($form, &$form_state, $course_enrollment) {
  field_attach_form('course_enrollment', $course_enrollment, $form, $form_state);
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
    '#weight' => 999,
  );
  $form['#submit'][] = 'course_enrollment_form_submit';
  return $form;
}