- define('__MAX_VALUE', $_CONFIG['holiday_max']);
- define('__LOCKED' , CREATE_TIME_SELECTIONS($_CONFIG['holiday_lock'] , "holiday_lock" , "WDh"));
- switch ($_CONFIG['holiday_mode'])
- {
- case "RESET":
- define('__RESET_DEFAULT' , ' checked');
- define('__DIRECT_DEFAULT', "");
- break;
+ $content['holiday_lock'] = createTimeSelections(getConfig('holiday_lock') , 'holiday_lock' , 'WDh');
+
+ // Init all entries
+ foreach (array('holiday_mode_direct','holiday_mode_reset') as $entry) {
+ $content[$entry] = '';
+ } // END - foreach