diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-05 17:47:07 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-05 17:47:07 +0000 |
commit | 5356a17ae82982ebe96e91ea309ab89713cf888d (patch) | |
tree | c15b8d42a86607b7a62162d28a531d395aaca816 /mod/notifications/start.php | |
parent | 697a81f7d240e47e261421a462f3e28a92841a1c (diff) | |
download | elgg-5356a17ae82982ebe96e91ea309ab89713cf888d.tar.gz elgg-5356a17ae82982ebe96e91ea309ab89713cf888d.tar.bz2 |
Further notification settings changes.
git-svn-id: https://code.elgg.org/elgg/trunk@2658 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/start.php')
-rw-r--r-- | mod/notifications/start.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php index 22d4a0be0..1691872a6 100644 --- a/mod/notifications/start.php +++ b/mod/notifications/start.php @@ -23,10 +23,18 @@ function notifications_plugin_init() {
extend_view('css','notifications/css');
+ global $CONFIG;
+
+ // Unset the default user settings hook
+ if (isset($CONFIG->hooks['usersettings:save']['user']))
+ foreach($CONFIG->hooks['usersettings:save']['user'] as $key => $function) {
+ if ($function == 'notification_user_settings_save')
+ unset($CONFIG->hooks['usersettings:save']['user'][$key]);
+ }
}
register_elgg_event_handler('pagesetup','system','notifications_plugin_pagesetup',1000);
- register_elgg_event_handler('init','system','notifications_plugin_init');
+ register_elgg_event_handler('init','system','notifications_plugin_init',1000);
// Register action
global $CONFIG;
|