1 user.admin.inc user_admin_role_delete_confirm_submit($form, &$form_state)

Form submit handler for user_admin_role_delete_confirm().

File

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

Code

function user_admin_role_delete_confirm_submit($form, &$form_state) {
  $role = $form_state['values']['role_name'];
  user_role_delete($role);
  backdrop_set_message(t('The %role role has been deleted.', array('%role' => $role)));
  $form_state['redirect'] = 'admin/config/people/roles';
}