You are here

function _mailhandler_mailbox_test in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 mailhandler.module \_mailhandler_mailbox_test()
1 string reference to '_mailhandler_mailbox_test'
mailhandler_menu in ./mailhandler.module
Implementation of hook_menu().

File

./mailhandler.module, line 314
Retrieves email for posting as nodes and comments.

Code

function _mailhandler_mailbox_test() {
  $form_state = array(
    'values' => $_POST,
  );
  $mailbox = (object) $form_state['values'];
  $output = _mailhandler_mailbox_test_output($mailbox);
  return drupal_json(array(
    'status' => TRUE,
    'data' => $output,
  ));
}