You are here

function course_user_type_form in Course 6

Allow the user to set their per-course user type.

1 string reference to 'course_user_type_form'
course_menu in ./course.module
Implements hook_menu().

File

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

Code

function course_user_type_form($form_state, $node) {
  $form = array();
  $form['#node'] = $node;
  $form['course_user_type'] = array(
    '#title' => t('Please select your user type'),
    '#description' => t('Please select your user type. This will affect the credit and certificate you will receive.'),
    '#options' => array_merge(array(
      '',
    ), course_user_type_get_options()),
    '#type' => 'select',
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );
  return $form;
}