You are here

protected function QuizResult::defaultLabel in Quiz 7.5

Get the label for this quiz result.

Return value

string

Overrides Entity::defaultLabel

File

includes/QuizResult.class.inc, line 57

Class

QuizResult

Code

protected function defaultLabel() {
  $quiz = node_load($this->nid, $this->vid);
  $user = user_load($this->uid);
  return t('@user\'s @quiz result in "@title"', array(
    '@user' => format_username($user),
    '@quiz' => QUIZ_NAME,
    '@title' => $quiz->title,
  ));
}