You are here

function sms_user_send_sms_action in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_user/sms_user.actions.inc \sms_user_send_sms_action()

Callback for the 'Send SMS to Users' action.

Parameters

object $user: The user to which the message will be sent.

array $context: The action context.

File

modules/sms_user/sms_user.actions.inc, line 28
SMS User Action Implementation.

Code

function sms_user_send_sms_action(&$user, $context) {
  $message = $context['sms_text'];
  sms_user_send($user->uid, $message);
}