I am writing a module in which I print some data from a certain table of the db. I would like to have this plugin in each profile, and present the data only of the profile owner in each profile. So how can a plugin get the name/guid of the profile owner in which is installed?
Thanks!
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.
- sokrat3s@sokrat3s

sokrat3s - 0 likes
- Team Webgalli@webgalli

Team Webgalli - 0 likes
You must log in to post replies.nevermind found it
$owner = get_user($vars['entity']->owner_guid);
thanks anyway
Youi can also use "ElggEntity.getOwnerEntity()" This returns the actual entity of the user who owns this entity, if any.