Popup notifications now go to all windows and are removed when user clicks OK. Or, close the popup with (X) to mark all as read.

This commit is contained in:
Nathan Gray
2011-04-13 17:51:02 +00:00
parent 056f61ef72
commit babc62d9f1
8 changed files with 120 additions and 40 deletions

View File

@ -614,4 +614,19 @@ final class notifications {
return false;
}
/**
* Actions to take when an account is deleted
*
* @param settings array with keys account_id and new_owner (new_owner is optional)
*/
public function deleteaccount($settings) {
foreach($this->backends as $backend) {
$notification_backend = self::_appname.'_'.$backend;
$backend_obj = new $notification_backend();
if(method_exists($backend_obj, 'deleteaccount')) {
$backend_obj->deleteaccount($settings);
}
}
}
}