You are here

function openid_user_delete_form_submit in Drupal 7

Same name and namespace in other branches
  1. 6 modules/openid/openid.pages.inc \openid_user_delete_form_submit()

File

modules/openid/openid.pages.inc, line 106
User page callbacks for the openid module.

Code

function openid_user_delete_form_submit($form, &$form_state) {
  $query = db_delete('authmap')
    ->condition('uid', $form_state['build_info']['args'][0]->uid)
    ->condition('aid', $form_state['build_info']['args'][1])
    ->condition('module', 'openid')
    ->execute();
  if ($query) {
    drupal_set_message(t('OpenID deleted.'));
  }
  $form_state['redirect'] = 'user/' . $form_state['build_info']['args'][0]->uid . '/openid';
}