Elgg
Version 6.2
actions
admin
delete_admin_notices.php
Go to the documentation of this file.
1
<?php
2
3
$batch
=
elgg_get_admin_notices
([
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
();
$batch
$batch
Definition:
delete_admin_notices.php:3
elgg_get_admin_notices
elgg_get_admin_notices(array $options=[])
Get admin notices.
Definition:
admin.php:75
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.
Definition:
pagehandler.php:224
Generated on Fri Aug 22 2025 00:00:18 for Elgg by
1.9.1