function mail_debugger_callback_submit in Mail Debugger 7
Same name and namespace in other branches
- 7.3 includes/mail_debugger.callback.inc \mail_debugger_callback_submit()
- 7.2 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 189
Code
function mail_debugger_callback_submit($form, &$form_state) {
// store the parameters
user_variable_set('mail_debugger_user_uid', $form_state['values']['user']['uid']);
user_variable_set('mail_debugger_user_type', $form_state['values']['user']['type']);
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']);
}