user_confirm_delete

Versions
5
user_confirm_delete($name, $uid)
6
user_confirm_delete(&$form_state, $account)

Form builder; confirm form for user deletion.

See also

user_confirm_delete_submit()

Related topics

Code

modules/user/user.pages.inc, line 317

<?php
function user_confirm_delete(&$form_state, $account) {

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

  return confirm_form($form,
    t('Are you sure you want to delete the account %name?', array('%name' => $account->name)),
    'user/'. $account->uid,
    t('All submissions made by this user will be attributed to the anonymous account. This action cannot be undone.'),
    t('Delete'), t('Cancel'));
}
?>
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.