You are here

function course_object_take in Course 6

Same name and namespace in other branches
  1. 7.2 course.module \course_object_take()
  2. 7 course.module \course_object_take()

Take the 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 555
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);
  return $courseObject
    ->takeCourseObject();
}