45 $admin_notice = new \ElggObject();
46 $admin_notice->subtype =
'admin_notice';
49 $admin_notice->admin_notice_id =
$id;
50 $admin_notice->description =
$message;
52 $result = $admin_notice->save();
70 public function delete(
$id =
'') {
74 'metadata_name' =>
'admin_notice_id',
75 'metadata_value' =>
$id,
78 'batch_inc_offset' =>
false,
103 'subtype' =>
'admin_notice',
121 'subtype' =>
'admin_notice',
122 'metadata_name_value_pair' => [
'name' =>
'admin_notice_id',
'value' =>
$id],
127 return (
$notice) ?
true :
false;
elgg_admin_notice_exists($id)
Check if an admin notice is currently active.
exists($id)
Check if an admin notice is currently active.
static find(array $options=[])
Build and execute a new query from an array of legacy options.
$id
River item delete action.
elgg_get_entities(array $options=[])
Fetches/counts entities or performs a calculation on their properties.
add($id, $message)
Write a persistent message to the admin view.
find(array $options=[])
Get admin notices.
_elgg_services()
Get the global service provider.