40 $admin_notice = new \ElggObject();
41 $admin_notice->subtype =
'admin_notice';
44 $admin_notice->admin_notice_id =
$id;
45 $admin_notice->description =
$message;
47 $result = $admin_notice->save();
69 function delete(
$id) {
75 'metadata_name' =>
'admin_notice_id',
76 'metadata_value' =>
$id,
100 'subtype' =>
'admin_notice',
118 'subtype' =>
'admin_notice',
119 'metadata_name_value_pair' => array(
'name' =>
'admin_notice_id',
'value' =>
$id),
124 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.
find($limit=10)
Get admin notices.
elgg_set_ignore_access($ignore=true)
Set if Elgg's access system should be ignored.
add($id, $message)
Write a persistent message to the admin view.
if(!$collection_name) $id