MDL-50839 user_menu: Allow themes to set User menu avatar size.

Added an @array "options" parameter to user_get_user_navigation_info(),
for passing in avatarsize, and possibly other options in future.

Also removed an errant parameter in the /lib/outputrenderers.php
user_get_user_navigation_info() call, as there was no corresponding
parameter in the function definition.

(Test written by Jetha Chan.)
This commit is contained in:
David Balch 2015-07-15 11:48:43 +01:00
parent 9325cd963f
commit 9dcd50358a
3 changed files with 32 additions and 7 deletions

View file

@ -3182,7 +3182,7 @@ EOD;
}
// Get some navigation opts.
$opts = user_get_user_navigation_info($user, $this->page, $this->page->course);
$opts = user_get_user_navigation_info($user, $this->page);
$avatarclasses = "avatars";
$avatarcontents = html_writer::span($opts->metadata['useravatar'], 'avatar current');