You are here

public function mailhandler_mailbox_ui::test_page in Mailhandler 7.2

Same name and namespace in other branches
  1. 6.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 224
Definition of mailhandler_mailbox_ui class.

Class

mailhandler_mailbox_ui

Code

public 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);
  }
}