diff options
Diffstat (limited to 'mod/profile/actions')
-rw-r--r-- | mod/profile/actions/edit.php | 6 | ||||
-rw-r--r-- | mod/profile/actions/iconupload.php | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php index 7a74535cd..fad257cf5 100644 --- a/mod/profile/actions/edit.php +++ b/mod/profile/actions/edit.php @@ -37,7 +37,11 @@ $user->$shortname = $value;
}
$user->save();
-
+ + // Notify of profile update + trigger_elgg_event('profileupdate',$user->type,$user); + +
system_message(elgg_echo("profile:saved"));
// Forward to the user's profile
diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index 967e58d70..e4185809a 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -56,7 +56,9 @@ $_SESSION['user']->icontime = time();
- system_message(elgg_echo("profile:icon:uploaded"));
+ system_message(elgg_echo("profile:icon:uploaded")); + + trigger_elgg_event('profileiconupdate',$_SESSION['user']->type,$_SESSION['user']);
} else {
system_message(elgg_echo("profile:icon:notfound"));
|