I installed HypeJunction's HypeWall plugin, but I want to move the wall form from the activity page to group profile page. I find that the form comes from this line of code:
//hypeWall/classes/hypeJunction/Wall/Plugin.php elgg_extend_view('page/layouts/elements/filter', 'framework/wall/container', 100);
so, to remove this view, it's supposed to be unextend this view if I am right, so my code is:
// mytheme/start.php inside init function elgg_unextend_view('page/layouts/elements/filter', 'framework/wall/container', 100);
but unfortunately it's not working. I can see the HypeWall plugin has a namespace, is this the reason why it's not working? How can I remove this view from the activity page and move it to group profile page? Thank you.
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.
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- iionly@iionly
iionly - 0 likes
- damieneskimo@damieneskimo
damieneskimo - 0 likes
You must log in to post replies.elgg_unextend_view doesn't have a third argument, so it's just
But, in order for that to work you need to make sure it's executed *after* hypeWall has registered it. If you unregister it, and then hypeWall registers it then it will be registered. I assume this is registered in the init function of hypeWall, so you should put this in the init function of your own plugin, and make sure that plugin is below hypeWall on the plugin list.
elgg_unextend_view() has only two parameters. Does it work without the 3rd parameter?
Turns out it works with or without the 3rd parameter. Interesting thing is it didn't complain when elgg_unextend_view() has a 3rd parameter. My fault is that hypeWall is below my theme on the plugin list, so it was not working. Thank you @Matt and @iionly