File tree Expand file tree Collapse file tree
custom/Extension/modules/Administration/Ext/Administration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
2-
3- $ admin_option_defs = array ();
4-
5- $ admin_option_defs ['Administration ' ]['sqlViewer ' ] = array (
6- //Icon name. Available icons are located in ./themes/default/images
7- 'Administration ' ,
8- //Link name label
9- 'LBL_SQLVIEWER_LINK_NAME ' ,
10- //Link description label
11- 'LBL_SQLVIEWER_LINK_DESCRIPTION ' ,
12- //Link URL - For Sidecar modules
13- './index.php?module=Administration&action=sqlViewer '
14- );
2+ $ exists = false ;
3+ $ count = 0 ;
4+ foreach ($ admin_group_header as $ header ) {
5+ if ($ header [0 ] == 'LBL_ADMINISTRATION_HOME_TITLE ' ) {
6+ $ exists = true ;
7+ $ admin_group_header [$ count ][3 ]['Administration ' ]['sqlViewer ' ] = array (
8+ 'EmailMan ' ,
9+ 'LBL_SQLVIEWER_LINK_NAME ' ,
10+ 'LBL_SQLVIEWER_LINK_DESCRIPTION ' ,
11+ './index.php?module=Administration&action=sqlViewer '
12+ );
13+ break ;
14+ }
15+ $ count ++;
16+ }
Original file line number Diff line number Diff line change 11<?php
22
33$ manifest = array (
4- 'key ' => '05171967 ' ,
5- 'name ' => 'sqlViewer ' ,
6- 'description ' => 'Formats prepared SQL to be readable ' ,
7- 'author ' => 'Kenneth Brill [ken.brill@gmail.com] ' ,
8- 'version ' => '1.0 ' ,
9- 'is_uninstallable ' => true ,
10- 'published_date ' => '01/24/2021 14:15:12 ' ,
11- 'type ' => 'module ' ,
12- 'readme ' => '' ,
13- 'icon ' => 'sqlViewer.png ' ,
14- 'remove_tables ' => '' ,
15- 'uninstall_before_upgrade ' => false ,
4+ 'key ' => '05171967 ' ,
5+ 'name ' => 'sqlViewer ' ,
6+ 'acceptable_sugar_flavors ' => array (
7+ 0 => 'CE ' ,
8+ 1 => 'PRO ' ,
9+ 2 => 'ENT ' ,
10+ 3 => 'DEV '
11+ ),
12+ 'acceptable_sugar_versions ' => array (
13+ 'regex_matches ' => array (
14+ 0 => "^(\d+\.)?(\d+\.)?(\*|\d+)$ "
15+ ),
16+ ),
17+ 'description ' => 'Formats prepared SQL to be readable ' ,
18+ 'author ' => 'Kenneth Brill [ken.brill@gmail.com] ' ,
19+ 'version ' => '1.0 ' ,
20+ 'is_uninstallable ' => true ,
21+ 'published_date ' => '01/24/2021 14:15:12 ' ,
22+ 'type ' => 'module ' ,
23+ 'readme ' => '' ,
24+ 'icon ' => 'sqlViewer.png ' ,
25+ 'remove_tables ' => '' ,
26+ 'uninstall_before_upgrade ' => false ,
1627);
1728
1829$ installdefs = array (
You can’t perform that action at this time.
0 commit comments