function sms_action_match_user in SMS Framework 6.2
Same name and namespace in other branches
- 7 modules/sms_user/sms_user.rules.inc \sms_action_match_user()
Rules action callback to match number to user.
File
- modules/
sms_user/ sms_user.rules.inc, line 72 - SMS User Rules Implementation.
Code
function sms_action_match_user($number) {
$uid = sms_user_get_uid($number);
return array(
'user_loaded' => user_load(array(
'uid' => $uid,
)),
);
}