Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2.  
  3. // paste this code in newly created file
  4.  
  5.     $admin_option_defs = array();
  6.     $admin_option_defs['Administration']['custom_admin_panel'] = array(
  7.         //Available icons are located in ./themes/default/images
  8.         'Administration',
  9.  
  10.         //Link name label
  11.         'LBL_LINK_NAME',
  12.  
  13.         //Link description label
  14.         'LBL_LINK_DESCRIPTION',
  15.  
  16.         //Link URL - For Sidecar modules
  17.         'javascript:parent.SUGAR.App.router.navigate("Contacts", {trigger: true});',
  18.     );
  19.  
  20.     $admin_group_header[] = array(
  21.         //Section header label
  22.         'LBL_CUSTOM_SECTION_HEADER',
  23.  
  24.         //$other_text parameter for get_form_header()
  25.         '',
  26.  
  27.         //$show_help parameter for get_form_header()
  28.         false,
  29.  
  30.         //Section links
  31.         $admin_option_defs,
  32.  
  33.         //Section description label
  34.         'LBL_CUSTOM_SECTION_DESCRIPTION'
  35.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement