function course_object_take in Course 7
Same name and namespace in other branches
- 6 course.module \course_object_take()
- 7.2 course.module \course_object_take()
Page handler for a course object.
Return value
string Themed output.
1 string reference to 'course_object_take'
- course_menu in ./
course.module - Implements hook_menu().
File
- ./
course.module, line 547 - course.module Core functionality for Courses.
Code
function course_object_take($courseObject) {
drupal_set_title($courseObject
->getTitle());
// Preserve course tabs
$course = $courseObject
->getCourse();
$item = menu_get_item($course
->getUrl());
menu_set_item(NULL, $item);
if ($out = $courseObject
->takeCourseObject()) {
return $out;
}
else {
drupal_access_denied();
}
}