Thanks for your help, Brett.
I was look at some plugins, like bookmarks and file, and I saw thet there is a line like "elgg_register_plugin_hook_handler...", that is usually in start.php.
For example, in the plugin file there's a line in start.php like this:
// add a file link to owner blocks
elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'file_owner_block_menu');
So in my plugin I use this:
elgg_unregister_plugin_hook_handler('register', 'menu:owner_block', 'file_owner_block_menu');
And then the item in the owner_block menu disappear. That's what I wanted to get.
I search for the 'prepare' option use instead of 'register', but I don't find a useful information.
Well, moreless I solved it.
Now, I have other question, but it's probably less important.
There are some items in the menus that have icons. In some plugins, when the callback is registered with the elgg_register_plugin_hook_handler function, when the content is executed, it loads the item, the url, and the icon. I'm interesting in create a new item menu with a customized icon.
I know that icon is used as an entity, but althougth I look over the code of the file_owner_block_menu function, I cannot get how that icon is put into the item menu.
Any idea of how to get it? Thanks again
I recently finished writing a documentation for the menus. Take a look: http://learn.elgg.org/en/1.9/guides/menus.html
It includes an example on how to add an icon as the menu link.
Thanks Juho.
I'll have a look on it ;-)
The contents of $vars is build in part by what you provide to elgg_view("some view", $your_vars) and it has some default values which you can find here https://github.com/Elgg/Elgg/blob/1.x/engine/classes/Elgg/ViewsService.php#L188-L319
Thanks a lot for your help, Jerome!
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.