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