aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/views/default/forms/notificationsettings/save.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-26 17:01:23 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-26 17:01:23 -0700
commit264d3643f2c76bedf875e3c586055d9f5ee14132 (patch)
treeee3f3c09cad0e22ff54db8dbc62026d1c6d2d800 /mod/notifications/views/default/forms/notificationsettings/save.php
parent91d3da6284490c32c595bb94f112fe30982bdb6c (diff)
parent4d8c3b75e36c45d5dd8b9d56338f7b303ea0a4fa (diff)
downloadelgg-264d3643f2c76bedf875e3c586055d9f5ee14132.tar.gz
elgg-264d3643f2c76bedf875e3c586055d9f5ee14132.tar.bz2
Merge pull request #280 from mrclay/4138-notifications
Fixes #4138: Admin can edit any users' notifications
Diffstat (limited to 'mod/notifications/views/default/forms/notificationsettings/save.php')
-rw-r--r--mod/notifications/views/default/forms/notificationsettings/save.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/mod/notifications/views/default/forms/notificationsettings/save.php b/mod/notifications/views/default/forms/notificationsettings/save.php
index ff32d8558..9470256ca 100644
--- a/mod/notifications/views/default/forms/notificationsettings/save.php
+++ b/mod/notifications/views/default/forms/notificationsettings/save.php
@@ -1,13 +1,21 @@
<?php
/**
* Personal notifications form body
+ *
+ * @uses $vars['user'] ElggUser
*/
-echo elgg_view('notifications/subscriptions/personal');
-echo elgg_view('notifications/subscriptions/collections');
-echo elgg_view('notifications/subscriptions/forminternals');
+/* @var ElggUser $user */
+$user = $vars['user'];
+
+echo elgg_view('notifications/subscriptions/personal', $vars);
+echo elgg_view('notifications/subscriptions/collections', $vars);
+echo elgg_view('notifications/subscriptions/forminternals', $vars);
?>
<div class="elgg-foot">
-<?php echo elgg_view('input/submit', array('value' => elgg_echo('save'))); ?>
+<?php
+echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $user->guid));
+echo elgg_view('input/submit', array('value' => elgg_echo('save')));
+?>
</div>