function twilio_rules_action_send_sms_to_user in Twilio 7
Action: Send an SMS to a user.
1 string reference to 'twilio_rules_action_send_sms_to_user'
- twilio_rules_action_info in ./
twilio.rules.inc - Implements hook_rules_action_info().
File
- ./
twilio.rules.inc, line 195 - Rules module integration
Code
function twilio_rules_action_send_sms_to_user($account, $message, $media) {
if (!empty($account->twilio_user['number']) && $account->twilio_user['status'] == 2) {
twilio_send($account->twilio_user['number'], $message, $account->twilio_user['country'], $media);
}
}