aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/notification.php6
-rw-r--r--languages/en.php1
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
*/