Elgg  Version master
delete_admin_notices.php
Go to the documentation of this file.
1 <?php
2 
4  'limit' => false,
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_ok_response($content= '', string|array $message= '', string $forward_url=null, int $status_code=ELGG_HTTP_OK)
Prepares a successful response to be returned by a page or an action handler.
elgg_get_admin_notices(array $options=[])
Get admin notices.
Definition: admin.php:75