Extension

Developer
Supported

Single Entry

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Viget Labs

     

You must be logged in to post.

Doesn’t Play nice with other addons using cp_menu_array hook

Support Request

Codesly, Inc.
Codesly, Inc.

Hey Guys,

Cool add-on but it doesn’t play nicely with other add-ons using the cp_menu_array hook.

In your cp_menu_array method you need to check for previous calls:

Change This:

public function cp_menu_array($menu)
{
  $this->EE->api->instantiate(‘channel_structure’);

To This:

public function cp_menu_array($menu)
{
  $this->EE->api->instantiate(‘channel_structure’);
 
  if ($this->EE->extensions->last_call !== FALSE)
  {
  $menu = $this->EE->extensions->last_call;
  }

Viget
# 1
Developer
Viget

Thanks for the heads up! We just pushed an updated version, so let us know if you run into any issues.