Aqeel and iionly, thanks so much, I am trying your suggestions out. :)
$admin_guids = elgg_get_admins(array(
'limit' => 0,
'callback' => function ($row) { return $row->guid; }, // no overhead of entity creation
));
notify_user($admin_guids, elgg_get_site_entity()->guid, $subject, $message, null, 'email');
@Steve: cool! I didn't know about that function.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.