From 4d8c3b75e36c45d5dd8b9d56338f7b303ea0a4fa Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sun, 24 Jun 2012 14:46:20 -0400 Subject: passing user as body variable to elgg_view_form() --- .../views/default/notifications/subscriptions/form.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'mod/notifications/views') 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); -- cgit v1.2.3