Add multiples links

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

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

    fmagusto Guest

    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:
    2,295
    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 Guest

    Great... I have testing, but with "," and not ";"
Thread Status:
Not open for further replies.

Share This Page