Elgg  Version 3.0
delete_admin_notices.php
Go to the documentation of this file.
1 <?php
2 
4  'limit' => 0,
5  'batch' => true,
6  'batch_inc_offset' => false,
7 ]);
8 
9 foreach ($batch as $notice) {
10  $notice->delete();
11 }
12 
13 return elgg_ok_response();
elgg_get_admin_notices(array $options=[])
Get admin notices.
Definition: admin.php:83
elgg_ok_response($content= '', $message= '', $forward_url=null, $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.