You are here

function twilio_user_settings_reset_form_submit in Twilio 7

Submit handler for user settings reset form.

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'twilio_user_settings_reset_form_submit'
twilio_user_settings_form in ./twilio.pages.inc
User settings form.

File

./twilio.pages.inc, line 206
User facing pages

Code

function twilio_user_settings_reset_form_submit($form, &$form_state) {
  $account = user_load($form_state['values']['uid']);
  twilio_user_delete($account);
  $account = user_load($form_state['values']['uid'], TRUE);
  drupal_set_message(t('Your mobile information has been removed'), 'status');
  $form_state['values']['account'] = $account;
  $form_state['rebuild'] = TRUE;
}