You are here

function course_uc_init in Course 6

Same name and namespace in other branches
  1. 8.3 modules/course_uc/course_uc.module \course_uc_init()
  2. 8.2 modules/course_uc/course_uc.module \course_uc_init()
  3. 7.2 modules/course_uc/course_uc.module \course_uc_init()
  4. 7 modules/course_uc/course_uc.module \course_uc_init()
  5. 3.x modules/course_uc/course_uc.module \course_uc_init()

Implements hook_init().

File

modules/course_uc/course_uc.module, line 110

Code

function course_uc_init() {
  if (arg(1) == 'checkout') {
    global $conf;

    // Turn off content profile on registration for ubercart account creations.
    $conf['content_profile_profile']['registration_use'] = 0;
  }
}