function sms_action_match_user in SMS Framework 7
Same name and namespace in other branches
- 6.2 modules/sms_user/sms_user.rules.inc \sms_action_match_user()
Rules action callback to match number to user.
Parameters
string $number: The number to which we want to get the user.
Return value
array An array conforming to rules conventions with the key 'user_loaded' and a value corresponding to the user with the specified number.
File
- modules/
sms_user/ sms_user.rules.inc, line 123 - SMS User Rules Implementation.
Code
function sms_action_match_user($number) {
return array(
'user_loaded' => user_load(sms_user_get_uid($number)),
);
}