function user_admin_role_delete_confirm

user_admin_role_delete_confirm($form, &$form_state, $role)

Form to confirm role delete operation.

File

modules/user/user.admin.inc, line 1037
Admin page callback file for the user module.

Code

function user_admin_role_delete_confirm($form, &$form_state, $role) {
  $form['rid'] = array(
    '#type' => 'value',
    '#value' => $role->rid,
  );
  return confirm_form($form, t('Are you sure you want to delete the role %name ?', array('%name' => $role->name)), 'admin/people/permissions/roles', t('This action cannot be undone.'), t('Delete'));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.admin.inc/function/user_admin_role_delete_confirm/7.x