- switch (getConfig('holiday_mode')) {
- case "RESET":
- define('__RESET_DEFAULT' , ' chkecked="checked"');
- define('__DIRECT_DEFAULT', '');
- break;
-
- case "DIRECT":
- define('__RESET_DEFAULT' , '');
- define('__DIRECT_DEFAULT', ' chkecked="checked"');
- break;
- }
+ // Set all entries
+ foreach (array('holiday_mode') as $entry) {
+ $content[$entry . '_' . strtolower(getConfig('holiday_mode'))] = ' checked="checked"';
+ } // END - if