You are here

function sms_user_settings_reset_form in SMS Framework 6.2

Same name and namespace in other branches
  1. 5 modules/sms_user/sms_user.module \sms_user_settings_reset_form()
  2. 6 modules/sms_user/sms_user.module \sms_user_settings_reset_form()
  3. 7 modules/sms_user/sms_user.module \sms_user_settings_reset_form()
1 string reference to 'sms_user_settings_reset_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 247
Provides integration between the SMS Framework and Drupal users.

Code

function sms_user_settings_reset_form(&$form_state, $account) {
  $form['uid'] = array(
    '#type' => 'hidden',
    '#value' => $account->uid,
  );
  $form['sms_user']['number'] = array(
    '#type' => 'item',
    '#title' => t('Your mobile phone number'),
    '#value' => $account->sms_user['number'],
    '#description' => t('Your mobile phone number has been confirmed.'),
  );
  $form['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Delete & start over'),
    '#access' => user_access('edit own sms number'),
  );
  return $form;
}