How to add own link to "Useful Links" block in member's area

From aMember Pro Documentation
Revision as of 01:32, 28 August 2012 by Alexander (talk | contribs) (Created page with "Create /amember/application/configs/site.php with this code: <source> <?php Am_Di::getInstance()->hook->add(Am_Event::GET_MEMBER_LINKS, 'getLinks'); function getLinks(Am_Event...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Create /amember/application/configs/site.php with this code:


<?php 
Am_Di::getInstance()->hook->add(Am_Event::GET_MEMBER_LINKS, 'getLinks');
function getLinks(Am_Event $event){
    $event->setReturn(array('/URL/' => 'LINK TITLE'));
}