diff options
-rw-r--r-- | mod/notifications/start.php | 4 | ||||
-rw-r--r-- | views/default/notifications/settings/usersettings.php | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php index 838a123fb..873095b8b 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -22,9 +22,7 @@ function notifications_plugin_init() { // Unset the default notification settings unregister_plugin_hook('usersettings:save', 'user', 'notification_user_settings_save'); - - // must wait until elgg_unextend_view() is merged in from 1.7 branch - if still needed - //elgg_unextend_view('usersettings/user', 'notifications/settings/usersettings'); + elgg_unextend_view('usersettings/user', 'notifications/settings/usersettings'); } /** diff --git a/views/default/notifications/settings/usersettings.php b/views/default/notifications/settings/usersettings.php index ea11ade8f..c659ae0ba 100644 --- a/views/default/notifications/settings/usersettings.php +++ b/views/default/notifications/settings/usersettings.php @@ -33,7 +33,15 @@ $notification_settings = get_user_notification_settings(page_owner()); } else { $val = "no"; } - echo elgg_view('input/radio',array('internalname' => "method[{$k}]", 'options' => array(elgg_echo('option:yes') => 'yes',elgg_echo('option:no') => 'no'), 'value' => $val)); + + echo elgg_view('input/radio', array( + 'internalname' => "method[$k]", + 'value' => $val, + 'options' => array( + elgg_echo('option:yes') => 'yes', + elgg_echo('option:no') => 'no' + ), + )); ?> </td> |