How to add links to the mobile hooks
This may be old news to some but to me it is a breakthrough in understanding php. I wanted to add a link to the menu in the mobile theme I made.
Tried several things to no avail until:
I added this into the class.mobilethemehooks.php
I added this into the private function, I suppose it can be also public if you want it to show when not logged in
elseif ($ButtonType == 'MobileHome') $Sender->Menu->AddLink('MobileHome', Img('/themes/mobile/mhicon.png', array('alt' => T('MobileHome'))), '/plugin/MobileHome', array('class' => 'MobileHome'));
Now I have a link back to the MobileHome page I made ! and it works ))