You are here

function mimemail_rules_action_mail_upgrade in Mime Mail 7

Implements hook_rules_action_base_upgrade().

2 calls to mimemail_rules_action_mail_upgrade()
mimemail_rules_action_mail_to_users_of_role_upgrade in ./mimemail.rules.inc
Implements hook_rules_action_base_upgrade().
mimemail_rules_action_mail_to_user_upgrade in ./mimemail.rules.inc
Implements hook_rules_action_base_upgrade().

File

./mimemail.rules.inc, line 235
Rules actions for sending Mime-encoded emails.

Code

function mimemail_rules_action_mail_upgrade($element, RulesPlugin $target) {
  $target->settings['key'] = $element['#settings']['key'];
  $target->settings['from_name'] = $element['#settings']['sender'];
  $target->settings['from_mail'] = $element['#settings']['from'];
  $target->settings['body'] = $element['#settings']['message_html'];
  $target->settings['plaintext'] = $element['#settings']['message_plaintext'];
}