Skip to content

Instantly share code, notes, and snippets.

@avtaniket
Created June 30, 2015 04:56
Show Gist options
  • Save avtaniket/149fe520060872edf210 to your computer and use it in GitHub Desktop.
Save avtaniket/149fe520060872edf210 to your computer and use it in GitHub Desktop.
<?php
$admin_option_defs = array();
$admin_option_defs['OST__Tickets']['ostickets_management'] = array(
//Icon name. Available icons are located in ./themes/default/images
'Releases',
//Link name label
'LBL_OST__TICKETS_LINK_NAME',
//Link description label
'LBL_OST__TICKETS_LINK_DESCRIPTION',
//Link URL - For Sidecar modules
'javascript:parent.SUGAR.App.router.navigate("#bwc/index.php?module=OST__Tickets&action=OsticketSettings", {trigger: true});',
//Alternatively, if you are linking to BWC modules
//'./index.php?module=OST__Tickets&action=osticketSettings',
);
$admin_group_header[] = array(
//Section header label
'LBL_OST__TICKETS_SECTION_HEADER',
//$other_text parameter for get_form_header()
'',
//$show_help parameter for get_form_header()
false,
//Section links
$admin_option_defs,
//Section description label
'LBL_OST__TICKETS_SECTION_DESCRIPTION'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment