From 84056320b7dfceb6ec721b39b10b022f7ab58787 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 29 Sep 2008 13:29:48 +0000 Subject: Set the notification settings git-svn-id: https://code.elgg.org/elgg/trunk@2146 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 6 ++++++ languages/en.php | 1 + 2 files changed, 7 insertions(+) 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 Widget gallery.", '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 */ -- cgit v1.2.3