You are here

function CourseReport::defaultLabel in Course 7

Same name and namespace in other branches
  1. 7.2 includes/CourseReport.inc \CourseReport::defaultLabel()

Course report entity label callback.

Overrides Entity::defaultLabel

File

includes/CourseReport.inc, line 70

Class

CourseReport
Holds a user's total progress through a course and functionality to check for completion of required objects.

Code

function defaultLabel() {
  $node = node_load($this->nid);
  $account = user_load($this->uid);
  return t("@username's course report for @title", array(
    '@username' => format_username($account),
    '@title' => $node->title,
  ));
}