/** * Hide or unhide an IMAP server from combined pages and searches */ public function process() { if (isset($this->request->post['hide_imap_server'])) { list($success, $form) = $this->process_form(array('imap_server_id')); if ($success) { Hm_IMAP_List::toggle_hidden($form['imap_server_id'], (bool) $this->request->post['hide_imap_server']); Hm_Msgs::add('Hidden status updated'); $this->session->record_unsaved('IMAP server hidden status updated'); } } }