Add multiples links

Discussion in 'Installation' started by fmagusto, Jan 30, 2015.

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

    fmagusto Member

    Joined:
    Nov 30, 2011
    Messages:
    245
    Hi,

    How to add multiples links here ?

    Am_Di::getInstance()->hook->add(Am_Event::GET_MEMBER_LINKS, 'getLinks');
    function getLinks(Am_Event $event){
    $event->addReturn('Link1', '/link', );
    }
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,670
    Please use code:
    PHP:
    Am_Di::getInstance()->hook->add(Am_Event::GET_MEMBER_LINKS'getLinks');
    function 
    getLinks(Am_Event $event){
        
    $event->addReturn('Link1''/link');
        
    $event->addReturn('Link2''/link2');
        
    $event->addReturn('Link3''/link3');
  3. fmagusto

    fmagusto Member

    Joined:
    Nov 30, 2011
    Messages:
    245
    Great... I have testing, but with "," and not ";"
Thread Status:
Not open for further replies.

Share This Page