Created
July 23, 2014 15:59
-
-
Save eggsurplus/75e42d632098cdc88266 to your computer and use it in GitHub Desktop.
Reuse admin panel
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 | |
//check for existing installed modules | |
$mycompany_admin_options_defs = array(); | |
if(!empty($admin_group_header['MyCompany'])) | |
{ | |
$mycompany_admin_options_defs = $admin_group_header['MyCompany'][3]; | |
} | |
//add this module to it | |
$mycompany_admin_options_defs['Administration']['thismodule_license']= array('helpInline','LBL_THISMODULE_LICENSE_TITLE','LBL_THISMODULE_LICENSE','./index.php?module=ThisModule&action=license'); | |
//save the admin panel | |
$admin_group_header['MyCompany'] = array('LBL_MYCOMPANY_MODULES', '', false, $mycompany_admin_options_defs, 'LBL_MYCOMPANY_MODULES_DESC'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment