function apply_for_role_remove_form in Apply for role 7
Same name and namespace in other branches
- 5 apply_for_role.module \apply_for_role_remove_form()
- 6 apply_for_role.admin.inc \apply_for_role_remove_form()
- 7.2 apply_for_role.admin.inc \apply_for_role_remove_form()
1 string reference to 'apply_for_role_remove_form'
- apply_for_role_menu in ./
apply_for_role.module - Implements hook_menu().
File
- ./
apply_for_role.admin.inc, line 275 - Administration forms for the Apply for Role (AFR) module.
Code
function apply_for_role_remove_form($form, $form_state, $user, $rid) {
$form['user'] = array(
'#type' => 'value',
'#value' => $user,
);
$form['rid'] = array(
'#type' => 'value',
'#value' => $rid,
);
$roles = array_map('check_plain', user_roles(TRUE));
return confirm_form($form, t('Do you want to remove the application from user %username for role %role', array(
'%username' => $user->name,
'%role' => isset($roles[$rid]) ? $roles[$rid] : t('Invalid role'),
)), 'admin/people/apply_for_role', t('The role will be automatically deleted from the user and they will be allowed to re-apply for the role.'), t('Delete'));
}