From ee18a9dc58e75113b3377d08f460788dde419869 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 24 Jun 2008 17:14:59 +0000 Subject: Closes #83 - API & Interface for selecting notification methods git-svn-id: https://code.elgg.org/elgg/trunk@1110 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../notifications/settings/usersettings/save.php | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 actions/notifications/settings/usersettings/save.php (limited to 'actions/notifications/settings/usersettings/save.php') diff --git a/actions/notifications/settings/usersettings/save.php b/actions/notifications/settings/usersettings/save.php new file mode 100644 index 000000000..79970421a --- /dev/null +++ b/actions/notifications/settings/usersettings/save.php @@ -0,0 +1,37 @@ + $v) + { + $result = set_user_notification_setting($_SESSION['user']->guid, $k, ($v == 'yes') ? true : false); + + if (!$result) + { + system_message(elgg_echo('notifications:usersettings:save:fail')); + forward($_SERVER['HTTP_REFERER']); + + exit; + } + } + + if ($result) + system_message(elgg_echo('notifications:usersettings:save:ok')); + else + system_message(elgg_echo('notifications:usersettings:save:fail')); + + forward($_SERVER['HTTP_REFERER']); +?> \ No newline at end of file -- cgit v1.2.3