You are here

function course_uc_settings_form in Course 7

Same name and namespace in other branches
  1. 8.3 modules/course_uc/course_uc.module \course_uc_settings_form()
  2. 8.2 modules/course_uc/course_uc.module \course_uc_settings_form()
  3. 6 modules/course_uc/course_uc.module \course_uc_settings_form()
  4. 7.2 modules/course_uc/course_uc.module \course_uc_settings_form()

Ubercart course settings form.

1 string reference to 'course_uc_settings_form'
course_uc_course_handlers in modules/course_uc/course_uc.module
Implements hook_course_handlers().

File

modules/course_uc/course_uc.module, line 148

Code

function course_uc_settings_form() {
  $form = array();
  $form['course_access_bypass_checkout'] = array(
    '#title' => 'Bypass checkout for free course products.',
    '#description' > 'Users will not have to go through checkout for course products that are free.',
    '#type' => 'checkbox',
    '#default_value' => variable_get('course_access_bypass_checkout', 1),
  );
  $form['course_uc_restrict_qty'] = array(
    '#title' => 'Restrict course products to 1 per customer.',
    '#description' > 'Course will restrict users from adding the product to cart if they have already purchased the course or already have the course in their cart.',
    '#type' => 'checkbox',
    '#default_value' => variable_get('course_uc_restrict_qty', 1),
  );
  return system_settings_form($form);
}