function course_preprocess_page in Course 6
Same name and namespace in other branches
- 8.3 course.module \course_preprocess_page()
- 8.2 course.module \course_preprocess_page()
- 7.2 course.module \course_preprocess_page()
- 7 course.module \course_preprocess_page()
- 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';
}
}