Toggle navigation
Home
Hosting
Community
Developers
Github
Web Services (API)
Documentation
References
Report Issue
Download
Installer
Virtual Machine Image
Components
Themes
Member Area
Login
Register
Search
You can change default notification type. The current lists the unread notifications. Default `true` means shows unread only. `false` means show all notifications.
~~~
<?php
function my_component_init(){
ossn_add_hook('list', 'notification:unread', 'my_component_hook');
}
function my_component_hook($hook, $type, $unread_or_all, $params = array()){
return true;
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
Notifications list type
You can change default notification type. The current lists the unread notifications. Default `true` means shows unread only. `false` means show all notifications. ~~~ <?php function my_component_init(){ ossn_add_hook('list', 'notification:unread', 'my_component_hook'); } function my_component_hook($hook, $type, $unread_or_all, $params = array()){ return true; } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~
Quick Access
Dashboard
Notification view hook
Notification add hook
Notifications list type