You are here

function mail_debugger_callback_submit in Mail Debugger 7.2

Same name and namespace in other branches
  1. 7.3 includes/mail_debugger.callback.inc \mail_debugger_callback_submit()
  2. 7 includes/mail_debugger.callback.inc \mail_debugger_callback_submit()

Form submit handler. Store form data to variables.

_state

Parameters

array $form:

1 string reference to 'mail_debugger_callback_submit'
mail_debugger_callback in includes/mail_debugger.callback.inc
Callback for drupal_get_form

File

includes/mail_debugger.callback.inc, line 294

Code

function mail_debugger_callback_submit($form, &$form_state) {

  // store the parameters
  user_variable_set('mail_debugger_user_mail', $form_state['values']['user']['mail']);
  user_variable_set('mail_debugger_user_type', $form_state['values']['user']['type']);
  user_variable_set('mail_debugger_contrib_to', $form_state['values']['contrib']['to']);
  user_variable_set('mail_debugger_contrib_module', $form_state['values']['contrib']['module']);
  user_variable_set('mail_debugger_contrib_key', $form_state['values']['contrib']['key']);
  user_variable_set('mail_debugger_contrib_param', $form_state['values']['contrib']['param']);
  user_variable_set('mail_debugger_contrib_language', $form_state['values']['contrib']['language']);
  user_variable_set('mail_debugger_contrib_from', $form_state['values']['contrib']['from']);
  user_variable_set('mail_debugger_contrib_send', $form_state['values']['contrib']['send']);
  user_variable_set('mail_debugger_custom_to', $form_state['values']['custom']['to']);
  user_variable_set('mail_debugger_custom_subject', $form_state['values']['custom']['subject']);
  user_variable_set('mail_debugger_custom_body', $form_state['values']['custom']['body']);
}