function mimemail_rules_action_form_submit in Mime Mail 6
Handle submission for action configuration forms.
3 calls to mimemail_rules_action_form_submit()
- mimemail_rules_action_mail_submit in includes/
mimemail.rules_forms.inc - Handle submission for action "Send an HTML mail to a user" configuration form.
- mimemail_rules_action_mail_to_users_of_role_submit in includes/
mimemail.rules_forms.inc - Handle submission for action "Send an HTML mail to all users of a role" configuration form.
- mimemail_rules_action_mail_to_user_submit in includes/
mimemail.rules_forms.inc - Handle submission for action "Send an HTML mail to an arbitrary mail address" configuration form.
File
- includes/
mimemail.rules_forms.inc, line 136 - Rules actions for sending MIME-encoded e-mails (settings forms).
Code
function mimemail_rules_action_form_submit(&$settings, $form, $form_state) {
// Unwrap the HTML message from the input filter wrapper.
$settings['message_html'] = $settings['message_html_filter']['message_html'];
// Store the value of the choosen input format.
$settings['message_html_filter'] = $form_state['values']['format'];
}