Changeset 5317

Show
Ignore:
Timestamp:
11/28/07 11:45:34 (1 year ago)
Author:
p_lindheimer
Message:

add an asterisk #exec to the extensions class, and add DYNAMICHINTS to be used by core to dynamically generate hints

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/extensions.class.php

    r5243 r5317  
    9494        function addInclude($section, $incsection) { 
    9595                $this->_includes[$section][] = $incsection; 
     96        } 
     97 
     98        function addExec($section, $incsection) { 
     99                $this->_exec[$section][] = $incsection; 
    96100        } 
    97101         
     
    183187                                        foreach ($this->_includes[$section] as $include) { 
    184188                                                $output .= "include => ".$include."\n"; 
     189                                        } 
     190                                } 
     191 
     192                                //add requested #exec scripts for this context 
     193                                if (isset($this->_exec[$section])) { 
     194                                        foreach ($this->_exec[$section] as $include) { 
     195                                                $output .= "#exec ".$include."\n"; 
    185196                                        } 
    186197                                } 
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r5293 r5317  
    5454        'DEVELRELOAD'    => array('bool' , false), 
    5555        'CUSTOMASERROR'  => array('bool' , false), 
     56        'DYNAMICHINTS'   => array('bool' , false), 
    5657); 
    5758