Created
November 25, 2015 00:50
-
-
Save dtbaker/2f52b3a156cb1ec4827d to your computer and use it in GitHub Desktop.
Create custom links in the UCM menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* name this file 'custom_link.php' and put it into a new folder /includes/plugin_custom_link/ | |
*/ | |
class module_custom_link extends module_base{ | |
public function init(){ } | |
public function get_menu($holding_module=false,$holding_page=false,$type=false){ | |
$links=array(); | |
if(!$holding_module){ | |
$links[]=array( | |
'name'=>'Menu 1', | |
'm'=>'custom_link', | |
'p'=>'your_custom_page', | |
'order'=>1, | |
); | |
$links[]=array( | |
'name'=>'Menu 2', | |
'm'=>'custom_link', | |
'p'=>'your_custom_page', | |
'order'=>2, | |
); | |
$links[]=array( | |
'name'=>'Menu 3', | |
'm'=>'custom_link', | |
'p'=>'your_custom_page', | |
'order'=>3, | |
); | |
$links[]=array( | |
'name'=>'Menu 4', | |
'm'=>'custom_link', | |
'p'=>'your_custom_page', | |
'order'=>4, | |
); | |
}else if($holding_module == 'customer'){ | |
} | |
return $links; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment