Hi,
how can i get the users which have sent me messages? (distinct)
Following code provides me all messages i got. How can I adapt it?
$messages = elgg_get_entities_from_metadata(array(
'type' => 'object',
'subtype' => 'messages',
'metadata_name' => 'toId',
'metadata_value' => $page_owner->guid,
'owner_guid' => $page_owner->guid,
'limit' => $limit,
'offset' => $offset,
));
THX, stoffal
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.
- Team Webgalli@webgalli
Team Webgalli - 0 likes
You must log in to post replies.