function site_notifications_init() { // register as a notification type elgg_register_notification_method('site'); elgg_register_plugin_hook_handler('send', 'notification:site', 'site_notifications_send'); elgg_register_page_handler('site_notifications', 'site_notifications_page_handler'); elgg_extend_view('elgg.css', 'site_notifications/css'); $js = elgg_get_simplecache_url('site_notifications.js'); elgg_register_js('elgg.site_notifications', $js, 'footer'); site_notifications_set_topbar(); }
function site_notifications_init() { // register as a notification type elgg_register_notification_method('site'); elgg_register_plugin_hook_handler('send', 'notification:site', 'site_notifications_send'); elgg_register_page_handler('site_notifications', 'site_notifications_page_handler'); elgg_extend_view('css/elgg', 'site_notifications/css'); $js = elgg_get_simplecache_url('js', 'site_notifications'); elgg_register_js('elgg.site_notifications', $js, 'footer'); site_notifications_set_topbar(); $actions_base = elgg_get_plugins_path() . 'site_notifications/actions/site_notifications'; elgg_register_action('site_notifications/delete', "{$actions_base}/delete.php"); }