You are here

function course_takecourse_title in Course 6

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

Menu title handler for the Take course tab.

Return value

string "Review course" or "Take course", depending on the current user's completion status.

1 string reference to 'course_takecourse_title'
course_menu in ./course.module
Implements hook_menu().

File

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

Code

function course_takecourse_title($node) {
  global $user;
  $report = course_report_load($node, $user);
  return $user->uid > 1 && isset($report->complete) && $report->complete ? t('Review course') : t('Take course');
}