function hook_engagements_handle_incoming_sms_post_save

7.x engagements.api.php hook_engagements_handle_incoming_sms_post_save(&$vars, $sms_history_mid = 0, $content_created = array())

Called at the very end of the engagements_handle_incoming_sms function, after the SMS message has been received, and any alerts or other content have been created, and it has been added to the sms_history table.

The $sms_history_mid value is the `mid` from the sms_history database table.

$content_created is an array of content (like the engagement, alerts, etc) which were created as a result of this SMS).

File

modules/engagements/engagements.api.php, line 40
This file describes hooks provided by the engagements module, which other modules can take advantage of.

Code

function hook_engagements_handle_incoming_sms_post_save(&$vars, $sms_history_mid = 0, $content_created = array()) {

  // Ex: Query sms_history where mid = $sms_history_mid, insert into other table



}