diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-29 13:29:48 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-29 13:29:48 +0000 |
commit | 84056320b7dfceb6ec721b39b10b022f7ab58787 (patch) | |
tree | 103a73f5db53043c307046b2ac6654da232bb149 | |
parent | 0972beea0a22861b5da08b4cfe5aed03cd6dd8b3 (diff) | |
download | elgg-84056320b7dfceb6ec721b39b10b022f7ab58787.tar.gz elgg-84056320b7dfceb6ec721b39b10b022f7ab58787.tar.bz2 |
Set the notification settings
git-svn-id: https://code.elgg.org/elgg/trunk@2146 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/notification.php | 6 | ||||
-rw-r--r-- | languages/en.php | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/notification.php b/engine/lib/notification.php index b024d00fb..4fa3d712f 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -283,6 +283,12 @@ 'user_guid' => array ('type' => 'int') ), elgg_echo('user.notification.get')); + expose_function('user.notification.set', 'set_user_notification_settings', array( + 'user_guid' => array ('type' => 'int'), + 'method' => array ('type' => 'string'), + 'value' => array ('type' => 'bool') + ), elgg_echo('user.notification.set')); + }
function notification_user_settings_save() {
diff --git a/languages/en.php b/languages/en.php index bb3ecf4f6..cdcd51636 100644 --- a/languages/en.php +++ b/languages/en.php @@ -362,6 +362,7 @@ To remove a widget drag it back to the <b>Widget gallery</b>.", 'notifications:usersettings:save:fail' => "There was a problem saving your notification settings.", 'user.notification.get' => 'Return the notification settings for a given user.', + 'user.notification.set' => 'Set the notification settings for a given user.', /** * Search */ |