im using translation editor which allows you to set users as translators (i assume by adding metadata).
what is the call for me to access this metadata to do something if user is translator?
// if member is admin or translator, show language settings icon.
if(elgg_is_logged_in() && get_loggedin_user()->isAdmin() || get_loggedin_user()->translator == TRUE)
{
echo 'hello translator';
elgg_register_event_handler('pagesetup', 'system', 'custom_language');
}
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.
- jsky@jskye
jsky - 0 likes
You must log in to post replies.i printed out all the metadata and found the metadata call is [translation_editor]