function openid_user_delete_form_submit in Drupal 6
Same name and namespace in other branches
- 7 modules/openid/openid.pages.inc \openid_user_delete_form_submit()
File
- modules/
openid/ openid.pages.inc, line 107 - User page callbacks for the openid module.
Code
function openid_user_delete_form_submit($form, &$form_state) {
db_query("DELETE FROM {authmap} WHERE uid = %d AND aid = %d AND module = 'openid'", $form_state['values']['uid'], $form_state['values']['aid']);
if (db_affected_rows()) {
drupal_set_message(t('OpenID deleted.'));
}
$form_state['redirect'] = 'user/' . $form_state['values']['uid'] . '/openid';
}