- 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