You are here

function course_preprocess_page in Course 6

Same name and namespace in other branches
  1. 8.3 course.module \course_preprocess_page()
  2. 8.2 course.module \course_preprocess_page()
  3. 7.2 course.module \course_preprocess_page()
  4. 7 course.module \course_preprocess_page()
  5. 3.x course.module \course_preprocess_page()

Implements hook_preprocess_page().

File

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

Code

function course_preprocess_page(&$variables) {
  if (arg(2) == 'takecourse') {
    $regions = variable_get('course_disable_regions', array());
    foreach ($regions as $key => $region) {
      if ($region) {
        unset($variables[$region]);
      }
    }
  }
  if ($course = course_get_context()) {

    // Back/next buttons?

    //$variables['content'] .= 'sdfsdfsd';
  }
}