how to remove EntityMenu

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?

  • 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 ?

    if (the context is group){

    unregister all menu:entity;

    register new menu:entity; //I want to add new menu:entity after removing the default menu

    }

     

    but i don't know what's the code to unregister menu:entity