function twilio_send_sms_to_user_action in Twilio 7
Callback function for sending sms to user action.
File
- ./
twilio.actions.inc, line 24 - Twilio Actions.
Code
function twilio_send_sms_to_user_action($account, $context) {
if (!empty($account->twilio_user['number']) && $account->twilio_user['status'] == 2) {
$message = $context['message'];
$media = !empty($context['media']) ? $context['media'] : NULL;
twilio_send($account->twilio_user['number'], $message, $account->twilio_user['country'], $media);
}
}