Changeset 11003

Show
Ignore:
Timestamp:
01/17/11 18:45:41 (2 years ago)
Author:
p_lindheimer
Message:

make category madatory even for modules, makes things more clear re #4740

Files:

Legend:

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

    r11001 r11003  
    343343      $attributes['type'] = $vars['type']; 
    344344    } 
    345     if (isset($vars['category']) && $vars['category'] == '' && (!isset($vars['module']) || $vars['module'] == '')) { 
    346       die_freepbx(_("You must set either a category or a module attribute")); 
    347     } 
    348345    if ($vars['type'] == CONF_TYPE_SELECT) { 
    349346      if (!isset($vars['options']) || $vars['options'] == '') {  
     
    356353      $attributes['level'] = (int) $vars['level']; 
    357354    } 
     355    if (isset($vars['category']) && $vars['category']) { 
     356      $attributes['category'] = $vars['category']; 
     357    } 
    358358    $optional = array('readonly', 'hidden', 'emptyok'); 
    359359    foreach ($optional as $atrib) { 
     
    362362      } 
    363363    } 
    364     $optional = array('description', 'category', 'module'); 
     364    $optional = array('description', 'module'); 
    365365    foreach ($optional as $atrib) { 
    366366      if (isset($vars[$atrib])) { 
  • modules/branches/2.9/backup/install.php

    r10979 r11003  
    297297  $set['level'] = 0; 
    298298  $set['module'] = 'backup'; 
    299   $set['category'] = ''; 
     299  $set['category'] = 'Backup Module'; 
    300300  $set['emptyok'] = 1; 
    301301  $set['description'] = 'The From: field for emails when using the backup email feature.'; 
     
    311311  $set['level'] = 2; 
    312312  $set['module'] = 'backup'; 
    313   $set['category'] = ''; 
     313  $set['category'] = 'Backup Module'; 
    314314  $set['emptyok'] = 1; 
    315315  $set['description'] = 'Specifies that sudo should be used with backup functions, requires proper sudo configuration which can constitute a security compromise when setup.'; 
     
    325325  $set['level'] = 2; 
    326326  $set['module'] = 'backup'; 
    327   $set['category'] = ''; 
     327  $set['category'] = 'Backup Module'; 
    328328  $set['emptyok'] = 1; 
    329329  $set['description'] = 'Adds some advanced and somewhat unspported features to the backup utility. This needs further clarification (or to be removed?)'; 
  • modules/branches/2.9/dashboard/install.php

    r10979 r11003  
    2828  $set['level'] = 0; 
    2929  $set['module'] = 'dashboard'; 
    30   $set['category'] = ''; 
     30  $set['category'] = 'GUI Behavior'; 
    3131  $set['emptyok'] = 1; 
    3232  $set['description'] = 'Update rate in seconds of all sections of the System Status panel except the Info box.'; 
     
    4242  $set['level'] = 0; 
    4343  $set['module'] = 'dashboard'; 
    44   $set['category'] = ''; 
     44  $set['category'] = 'GUI Behavior'; 
    4545  $set['emptyok'] = 1; 
    4646  $set['description'] = 'Update rate in seconds of the Info section of the System Status panel.'; 
     
    5656  $set['level'] = 2; 
    5757  $set['module'] = 'dashboard'; 
    58   $set['category'] = ''; 
     58  $set['category'] = 'System Setup'; 
    5959  $set['emptyok'] = 1; 
    6060  $set['description'] = 'SSH port number configured on your system if not using the default port 22, this allows the dashboard monitoring to watch the poper port.'; 
     
    7070  $set['level'] = 2; 
    7171  $set['module'] = 'dashboard'; 
    72   $set['category'] = ''; 
     72  $set['category'] = 'GUI Behavior'; 
    7373  $set['emptyok'] = 1; 
    7474  $set['description'] = 'Use this to pre-set the scale for maximum calls on the Dashboard display. If not set, the the scale is dynamically sized based on the active calls on the system.'; 
  • modules/branches/2.9/daynight/install.php

    r10979 r11003  
    9090  $set['readonly'] = 0; 
    9191  $set['hidden'] = 0; 
    92   $set['level'] = 0
     92  $set['level'] = 1
    9393  $set['module'] = 'daynight'; 
    94   $set['category'] = ''; 
     94  $set['category'] = 'Day Night Module'; 
    9595  $set['emptyok'] = 0; 
    9696  $set['description'] = 'By default, the Day/Night module will not hook Time Conditions allowing one to associate a daynight manual override with a time condition since time conditions have their own feature code as of version 2.9. If there is already an associaiton configured (on an upgraded system), this will have no affect for the Time Conditions that are effected. Setting this to true reverts the 2.8 and prior behavior by allowing for the use of a daynight toggle to be associated with a time conditon. This can be useful for two scenarios. First, to override a Time Condition without the automatic resetting that occurs with the built in Time Condition overrides. The second use is the ability to associate a single daynight toggle with multiple time conditions thus creating a <b>master switch</b> that can be used to override several possible call flows through different time conditions.'; 
  • modules/branches/2.9/music/install.php

    r10979 r11003  
    4949  $set['readonly'] = 0; 
    5050  $set['hidden'] = 0; 
    51   $set['level'] = 0
     51  $set['level'] = 3
    5252  $set['module'] = 'music'; 
    53   $set['category'] = ''; 
     53  $set['category'] = 'System Setup'; 
    5454  $set['emptyok'] = 0; 
    5555  $set['description'] = 'When set to false, the MP3 files can be loaded and WAV files converted to MP3 in the MoH module. The default behavior of true assumes you have mpg123 loaded as well as sox and will convert MP3 files to WAV. This is highly recommended as MP3 files heavily tax the system and can cause instability on a busy phone system'; 
  • modules/branches/2.9/parking/install.php

    r10979 r11003  
    9797  $set['readonly'] = 0; 
    9898  $set['hidden'] = 0; 
    99   $set['level'] = 0
     99  $set['level'] = 3
    100100  $set['module'] = 'parking'; 
    101   $set['category'] = ''; 
     101  $set['category'] = 'System Setup'; 
    102102  $set['emptyok'] = 0; 
    103103  $set['description'] = 'Set to generate some additional dialplan if using a particular patch that was available in Asterisk 1.2 and 1.4 to add behavior to parking like adding Alert Info and CID prepends to timed out parked calls. This patch is mostly obsoleted and the setting will probably go away at some point when Asterisk 1.6+ parking enhacements are added to the module.'; 
  • modules/branches/2.9/queues/install.php

    r10979 r11003  
    524524  $set['level'] = 3; 
    525525  $set['module'] = 'queues'; 
    526   $set['category'] = ''; 
     526  $set['category'] = 'System Setup'; 
    527527  $set['emptyok'] = 0; 
    528528  $set['description'] = 'Setting this flag will generate the required dialplan to integrate with the following Asterisk patch: <b>https://issues.asterisk.org/view.php?id=15168</b>. This setting is obsolete on Asterisk 1.8+ systems where the hint state is now standard and always used. This asterisk patch is only available on Asterisk 1.4, trying to use this setting on Asterisk 1.6 will break some queue behavior and should be avoided'; 
  • modules/branches/2.9/recordings/install.php

    r10979 r11003  
    143143  $set['readonly'] = 0; 
    144144  $set['hidden'] = 0; 
    145   $set['level'] = 0
     145  $set['level'] = 3
    146146  $set['module'] = 'recordings'; 
    147   $set['category'] = ''; 
     147  $set['category'] = 'System Setup'; 
    148148  $set['emptyok'] = 1; 
    149149  $set['description'] = 'Crypt key used by this recordings module when accessing the recording files. Change from the default of "moufdsuu3nma0" if desired.'; 
  • modules/branches/2.9/timeconditions/install.php

    r10979 r11003  
    260260  $set['readonly'] = 0; 
    261261  $set['hidden'] = 0; 
    262   $set['level'] = 0
     262  $set['level'] = 1
    263263  $set['module'] = 'timeconditions'; 
    264   $set['category'] = ''; 
     264  $set['category'] = 'Time Condition Module'; 
    265265  $set['emptyok'] = 0; 
    266266  $set['description'] = 'The polling interval in seconds used by the Time Conditions manintenace task, launched by an Asterisk call file used to update Time Conditions override states as well as keep custom device state hint values up-to-date when being used with BLF. A shorter interval will assure that BLF keys states are accurate. The interval should be less than the shortest configured span between two time condition states, so that a manual overide during such a period is properly reset when the new period starts.'; 
     
    275275  $set['readonly'] = 0; 
    276276  $set['hidden'] = 0; 
    277   $set['level'] = 0
     277  $set['level'] = 1
    278278  $set['module'] = 'timeconditions'; 
    279   $set['category'] = ''; 
     279  $set['category'] = 'Time Condition Module'; 
    280280  $set['emptyok'] = 0; 
    281281  $set['description'] = 'If set to false, this will override the execution of the Time Conditons maintenace task launched by call files. If all the feature codes for time conditions are disabled, the maintenance task will not be launched anyhow. Setting this to false would be fairly un-common. You may want to set this temporarily if debugging a system to avoid the periodic dialplan running through the CLI that the maintenance task launches and can be distracting.';