You are here

function user_admin_role_delete_confirm_submit in Drupal 7

Form submit handler for user_admin_role_delete_confirm().

File

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

Code

function user_admin_role_delete_confirm_submit($form, &$form_state) {
  user_role_delete((int) $form_state['values']['rid']);
  drupal_set_message(t('The role has been deleted.'));
  $form_state['redirect'] = 'admin/people/permissions/roles';
}