Last active
September 20, 2016 03:30
-
-
Save dtbaker/32aefbd28a2877257d49 to your computer and use it in GitHub Desktop.
Create a link to a custom data entry in UCM. Upload this file to includes/plugin_data_link/data_link.php - change the 'data_type_id' value to the ID of your customer data in your UCM system.
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 | |
class module_data_link extends module_base{ | |
public function init(){ } | |
public function get_menu($holding_module=false,$holding_page=false,$type=false){ | |
$links=array(); | |
if(!$holding_module){ | |
if(self::can_i('view','Data Link')){ | |
// rendering the main menu: | |
$links[]=array( | |
'm'=>'data', | |
'p'=>'admin_data', | |
'name'=>'My Orders', | |
'order'=>999999, | |
'args'=>array( | |
'data_type_id'=>9, | |
'view_all'=>1, | |
'customer_id'=>false, | |
), | |
); | |
} | |
} | |
return $links; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment