openid_user_delete_form

Versions
6
openid_user_delete_form($form_state, $account, $aid = 0)
7
openid_user_delete_form($form, $form_state, $account, $aid = 0)

Present a confirmation form to delete the specified OpenID identity from the system.

See also

openid_user_delete_form_submit()

Related topics

Code

modules/openid/openid.pages.inc, line 89

<?php
function openid_user_delete_form($form_state, $account, $aid = 0) {
  $authname = db_result(db_query('SELECT authname FROM {authmap} WHERE uid = %d AND aid = %d', $account->uid, $aid));

  $form = array();

  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );

  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );

  return confirm_form($form, t('Are you sure you want to delete the OpenID %authname for %user?', array('%authname' => $authname, '%user' => $account->name)), 'user/'. $account->uid .'/openid');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.