blob: d7d1c87eaa34d65a367e36906d1ca86272f73c4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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");
?>
|