function sms_user_settings_confirm_form in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_user/sms_user.module \sms_user_settings_confirm_form()
- 6.2 modules/sms_user/sms_user.module \sms_user_settings_confirm_form()
- 7 modules/sms_user/sms_user.module \sms_user_settings_confirm_form()
1 string reference to 'sms_user_settings_confirm_form'
- sms_user_settings in modules/
sms_user/ sms_user.module - Menu callback; provides the forms for adding and confirming a user's mobile number.
File
- modules/
sms_user/ sms_user.module, line 142 - Provides integration between the SMS Framework and Drupal users.
Code
function sms_user_settings_confirm_form(&$form_state, $account) {
$form['number'] = array(
'#type' => 'item',
'#title' => t('Number'),
'#value' => $account->sms_user[0]['number'],
);
$form['confirm_code'] = array(
'#type' => 'textfield',
'#title' => t('Confirmation code'),
'#description' => t('Enter the confirmation code that was sent to your phone.'),
'#size' => 4,
'#maxlength' => 4,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Confirm number'),
);
$form['reset'] = array(
'#type' => 'submit',
'#value' => t('Delete & start over'),
);
return $form;
}