You are here

function _mass_contact_prepare_message_for_sending in Mass Contact 7

Same name and namespace in other branches
  1. 6 mass_contact.module \_mass_contact_prepare_message_for_sending()

This is for preparing a message that has been queued for sending.

Parameters

array $message: The message to be sent.

1 call to _mass_contact_prepare_message_for_sending()
mass_contact_cron in ./mass_contact.module
Implements hook_cron_queue_info().

File

./mass_contact.module, line 405
This is the main code file for the Mass Contact module.

Code

function _mass_contact_prepare_message_for_sending(array $message) {
  if (!empty($message)) {
    _mass_contact_send_message($message->data['message_key'], $message->data['to'], $message->data['params'], $message->data['from_email'], $message->data['success_message']);
  }
}