From 939ce5e44c049b0897899c8c7a79544068d2e3b3 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 8 Oct 2008 11:27:00 +0000 Subject: Closes #301: Profile icons now use getIcon() API. Overrides now possible: For themes to override, create a plugin hook listening to 'entity:icon:url' and object 'user'. In the hook return a different url. To replace default user icons in a plugin one might create a hook: function profile_usericon_hook($hook, $entity_type, $returnvalue, $params) { if ((!$returnvalue) && ($params['entity'] instanceof ElggUser)) { // return your default graphic here. } } And set it to priority 900 (lower priority than the code that displays a pretty icon for users but higher than the default object display code in entities.php) git-svn-id: https://code.elgg.org/elgg/trunk@2221 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/profile/icon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/profile/icon.php') diff --git a/mod/profile/icon.php b/mod/profile/icon.php index f13ec7322..33a5cde7f 100644 --- a/mod/profile/icon.php +++ b/mod/profile/icon.php @@ -24,7 +24,7 @@ $size = "medium"; // Try and get the icon - + $filehandler = new ElggFile(); $filehandler->owner_guid = $user->getGUID(); $filehandler->setFilename("profile/" . $username . $size . ".jpg"); -- cgit v1.2.3