User area tabs disappeared

Discussion in 'Customization & add-ons' started by test test, Oct 14, 2015.

Thread Status:
Not open for further replies.
  1. test test

    test test New Member

    Joined:
    Oct 14, 2015
    Messages:
    16
    Hi

    After add following code to site.php file, all of tabs in the user area was lost.

    How can i get back them?

    PHP:
    <?php
    Am_Di
    ::getInstance()->hook->add('userMenu''siteUserMenu');
    function 
    siteUserMenu(Am_Event $event)
    {

           
    $page $menu->findOneBy('id''with-subitem');
           
    $menu->removePage($page);
    }
    Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Try this :
    PHP:
    <?php
    Am_Di
    ::getInstance()->hook->add('userMenu''siteUserMenu');
    function 
    siteUserMenu(Am_Event $event)
    {
           
    $menu $event->getMenu();
           
    $page $menu->findOneBy('id''with-subitem');
           
    $menu->removePage($page);
    }
  3. test test

    test test New Member

    Joined:
    Oct 14, 2015
    Messages:
    16
    Thanks it solved.
Thread Status:
Not open for further replies.

Share This Page