| | |
| | | break; |
| | | } |
| | | |
| | | $data = rcmail::get_instance()->plugins->exec_hook('save_preferences', |
| | | $data = rcmail::get_instance()->plugins->exec_hook('preferences_save', |
| | | array('prefs' => $a_user_prefs, 'section' => $CURR_SECTION)); |
| | | |
| | | $a_user_prefs = $data['prefs']; |
| | |
| | | $OUTPUT->command('reload', 500); |
| | | } |
| | | |
| | | // switch skin |
| | | $OUTPUT->set_skin($a_user_prefs['skin']); |
| | | // switch skin (if valid, otherwise unset the pref and fall back to default) |
| | | if (!$OUTPUT->set_skin($a_user_prefs['skin'])) |
| | | unset($a_user_prefs['skin']); |
| | | |
| | | // force min size |
| | | if ($a_user_prefs['pagesize'] < 1) |