In the Gradebook, User report, the student's name (at the top) is a hyperlink
to that student's account. In most places where a student's name shows
(e.g. the Grader report) it is most often a hyperlink.
if (isset($user)) {
$output = $OUTPUT->context_header(
array(
- 'heading' => fullname($user),
+ 'heading' => html_writer::link(new moodle_url('/user/view.php', array('id' => $user->id,
+ 'course' => $courseid)), fullname($user)),
'user' => $user,
'usercontext' => context_user::instance($user->id)
), 2