Changeset 5991

Show
Ignore:
Timestamp:
07/10/08 22:25:10 (3 months ago)
Author:
p_lindheimer
Message:

Add ability to Module Admin to not display modules in GUI that you want filtered/hidden. Check in example conf file plus conf file for featurecode override

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/page.modules.php

    r5990 r5991  
    621621                $category = false; 
    622622                $numdisplayed = 0; 
     623                $fd = $amp_conf['ASTETCDIR'].'/freepbx_module_admin.conf'; 
     624                if (file_exists($fd)) { 
     625                        $module_filter = parse_ini_file($fd); 
     626                } else { 
     627                        $module_filter = array(); 
     628                } 
    623629                foreach (array_keys($modules) as $name) { 
    624                          
     630                        if (isset($module_filter[$name]) && strtolower(trim($module_filter[$name])) == 'hidden') { 
     631                                continue; 
     632                        } 
    625633                        $numdisplayed++; 
    626634                         
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads