aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-24 14:46:20 -0400
committerCash Costello <cash.costello@gmail.com>2012-06-24 14:46:20 -0400
commit4d8c3b75e36c45d5dd8b9d56338f7b303ea0a4fa (patch)
treeb7e80cbb40d9f5d4f62180cf7db9f81b4764300f /mod/notifications
parent865ea89ad695bec25407f7f218e10385a3ebb6b6 (diff)
downloadelgg-4d8c3b75e36c45d5dd8b9d56338f7b303ea0a4fa.tar.gz
elgg-4d8c3b75e36c45d5dd8b9d56338f7b303ea0a4fa.tar.bz2
passing user as body variable to elgg_view_form()
Diffstat (limited to 'mod/notifications')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/form.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/form.php b/mod/notifications/views/default/notifications/subscriptions/form.php
index 8ae27f829..559354eff 100644
--- a/mod/notifications/views/default/notifications/subscriptions/form.php
+++ b/mod/notifications/views/default/notifications/subscriptions/form.php
@@ -2,15 +2,11 @@
/**
* Elgg personal notifications
*
- * @uses $vars['user'] ElggUser
+ * @uses $vars['user'] ElggUser that owns the notification settings
*/
-
+// @todo is this a view for extensions?
echo elgg_view('subscriptions/form/additions', $vars);
-
-// Display a description
-echo elgg_view_form('notificationsettings/save', array(
- 'class' => 'elgg-form-alt',
- 'user' => $vars['user']
-));
+$form_vars = array('class' => 'elgg-form-alt');
+echo elgg_view_form('notificationsettings/save', $form_vars, $vars);