Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function mainmenu() |
||
29 | { |
||
30 | $helper = Xoops::getModuleHelper(\basename(\dirname(\dirname(__DIR__)))); |
||
31 | $subMenu = []; |
||
32 | // Prevent wasting resources |
||
33 | if ($helper->isCurrentModule()) { |
||
34 | //Todo: Implement submenu; |
||
35 | } |
||
36 | |||
37 | $ret[] = [ |
||
|
|||
38 | 'name' => $helper->getModule()->getVar('name'), |
||
39 | 'link' => $helper->url(), |
||
40 | 'subMenu' => $subMenu, |
||
41 | ]; |
||
42 | |||
43 | return $ret; |
||
44 | } |
||
46 |