You are here

function message_notify_rules_process in Message Notify 7

Same name and namespace in other branches
  1. 7.2 message_notify.rules.inc \message_notify_rules_process()

Action: Process and send Message.

1 string reference to 'message_notify_rules_process'
message_notify_rules_action_info in ./message_notify.rules.inc
Implements hook_rules_action_info().

File

./message_notify.rules.inc, line 67
Rules integration for the Message notify module.

Code

function message_notify_rules_process(Message $message, $save_on_fail, $save_on_success, $rendered_subject_field, $rendered_body_field) {
  $options = array(
    'save on fail' => $save_on_fail,
    'save on success' => $save_on_success,
    'rendered subject field' => $rendered_subject_field,
    'rendered body field' => $rendered_body_field,
  );
  message_notify_send_mail($message, $options);
}