Skip to content

Commit

Permalink
MDL-34887: Add hyperlinks to names in the Assignment's grading table
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond Wijaya committed Aug 17, 2012
1 parent c92d6f4 commit a1d31f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/assign/gradingtable.php
Expand Up @@ -287,13 +287,15 @@ function col_picture(stdClass $row) {
}

/**
* Format a user record for display (don't link to profile)
* Format a user record for display (link to profile)
*
* @param stdClass $row
* @return string
*/
function col_fullname($row) {
return fullname($row);
$courseid = $this->assignment->get_course()->id;
$link= new moodle_url('/user/view.php', array('id' =>$row->id, 'course'=>$courseid));
return $this->output->action_link($link, fullname($row));
}

/**
Expand Down

0 comments on commit a1d31f7

Please sign in to comment.