diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-23 14:33:12 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-23 14:33:12 +0000 |
commit | 52a6050d1b4a7fae752019570bf2af521f4e2f6c (patch) | |
tree | a561c0cc433bd4c13f2cb16121a152621023bbb8 /mod/notifications/start.php | |
parent | c8c02ae0a8a4cbb11c0d76386ab12fad73376aef (diff) | |
download | elgg-52a6050d1b4a7fae752019570bf2af521f4e2f6c.tar.gz elgg-52a6050d1b4a7fae752019570bf2af521f4e2f6c.tar.bz2 |
Added notification subscriptions page.
git-svn-id: https://code.elgg.org/elgg/trunk@2608 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/notifications/start.php')
-rw-r--r-- | mod/notifications/start.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mod/notifications/start.php b/mod/notifications/start.php new file mode 100644 index 000000000..d7d1c87ea --- /dev/null +++ b/mod/notifications/start.php @@ -0,0 +1,30 @@ +<?php
+
+ /**
+ * Elgg notifications plugin
+ *
+ * @package ElggNotifications
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008-2009
+ * @link http://elgg.com/
+ */
+
+
+ /**
+ * Notification settings page setup function
+ *
+ */
+ function notifications_plugin_pagesetup() {
+ global $CONFIG;
+ if (get_context() == 'settings')
+ add_submenu_item(elgg_echo('notifications:subscriptions:changesettings'), $CONFIG->wwwroot . "mod/notifications/",'notifications');
+ }
+
+ register_elgg_event_handler('pagesetup','system','notifications_plugin_pagesetup',1000);
+
+ // Register action
+ global $CONFIG;
+ register_action("notificationsettings/save",false,$CONFIG->pluginspath . "notifications/actions/save.php");
+
+?>
\ No newline at end of file |