function twilio_rules_condition_user_has_verified_number in Twilio 7
Condition: Validate if the user has a verified number.
File
- ./
twilio.rules.inc, line 236 - Rules module integration
Code
function twilio_rules_condition_user_has_verified_number($user) {
// Check if the user has TWILIO_USER_CONFIRMED status.
if (!empty($user->twilio_user) && $user->twilio_user['status'] == TWILIO_USER_CONFIRMED) {
return TRUE;
}
return FALSE;
}