Example #1
0
/**
 * A cronjob to clean general internal activity notifications
 */
function cron_clean_internal_activity_notifications()
{
    safe_require('notification', 'internal');
    PluginNotificationInternal::clean_notifications(array('viewaccess', 'watchlist', 'institutionmessage'));
}
Example #2
0
 public static function clean_annotationfeedback_notifications()
 {
     safe_require('notification', 'internal');
     PluginNotificationInternal::clean_notifications(array('annotationfeedback'));
 }
Example #3
0
 public static function clean_forum_notifications()
 {
     safe_require('notification', 'internal');
     PluginNotificationInternal::clean_notifications(array('newpost'));
 }