You are here

function mailhandler_mailbox_ui::test_page in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 plugins/ctools/export_ui/mailhandler_mailbox_ui.class.php \mailhandler_mailbox_ui::test_page()

Callback to test a mailbox connection.

File

plugins/ctools/export_ui/mailhandler_mailbox_ui.class.php, line 215
Definition of mailhandler_mailbox_ui class.

Class

mailhandler_mailbox_ui
Represents an email mailbox (IMAP, POP3, etc...).

Code

function test_page($js, $input, $mailbox) {
  $input['test_result'] = _mailhandler_mailbox_test_output($mailbox);
  if (!$js) {
    drupal_goto(ctools_export_ui_plugin_base_path($this->plugin));
  }
  else {
    return $this
      ->list_page($js, $input);
  }
}