blob: 22d4a0be0a4bdc239e868c507659a877c5bb7cac (
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
31
32
33
34
35
|
<?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/");
}
function notifications_plugin_init() {
extend_view('css','notifications/css');
}
register_elgg_event_handler('pagesetup','system','notifications_plugin_pagesetup',1000);
register_elgg_event_handler('init','system','notifications_plugin_init');
// Register action
global $CONFIG;
register_action("notificationsettings/save",false,$CONFIG->pluginspath . "notifications/actions/save.php");
?>
|