I want to remove EntityMenu (likes,delete,edit etc) only for group list ,
So other entities list still has EntityMenu but group list doesn't have it , is it possible?
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.
- Steve Clay@steve_clay
Steve Clay - 0 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
You must log in to post replies.First figure out how to remove the entity menu. Turn on "wrap views" in the developers plugin and see which view is wrapping menu. Looks like navigation/menu/default would do it.
Register a handler for the hook ["view", "navigation/menu/default"]. You'll get access to all menus, so check $vars['name'] for the menu name. If it isn't "entity", just return; to cancel.
Now you can return "" (empty string) to eliminate the view output. To do this for only groups, you'll have to sniff the URL or check elgg_is_context('groups').
As usual, that's just one of several ways to do it. in Elgg
Is it possible to do this using start.php of my theme ?
but i don't know what's the code to unregister menu:entity