function twilio_user_login in Twilio 7
Implements hook_user_login().
File
- ./
twilio.user.inc, line 86 - Twilio user account and registration related functionality
Code
function twilio_user_login(&$edit, $account) {
// If the users mobile number is in the verification state let them know they
// need to enter their verification code and link to their settings page.
if (twilio_edit_access($account) && !empty($account->twilio_user) && $account->twilio_user['status'] == 1) {
$account_link = l(t("account settings page"), 'user/' . $account->uid . '/edit/twilio');
drupal_set_message(t("You must confirm your phone number by entering the verification code sent to you via SMS. Go to the !link to enter your verification code.", array(
'!link' => $account_link,
)), 'warning');
}
}