function apply_for_role_deny_form in Apply for role 6
Same name and namespace in other branches
- 5 apply_for_role.module \apply_for_role_deny_form()
- 7.2 apply_for_role.admin.inc \apply_for_role_deny_form()
- 7 apply_for_role.admin.inc \apply_for_role_deny_form()
1 string reference to 'apply_for_role_deny_form'
- apply_for_role_menu in ./
apply_for_role.module - Implementation of hook_menu().
File
- ./
apply_for_role.admin.inc, line 188 - Administration forms for the Apply for Role module.
Code
function apply_for_role_deny_form(&$form_state, $user, $rid) {
$form['user'] = array(
'#type' => 'value',
'#value' => $user,
);
$form['rid'] = array(
'#type' => 'value',
'#value' => $rid,
);
$roles = user_roles(TRUE);
return confirm_form($form, t('Do you want to deny the application from user %username for role %role', array(
'%username' => $user->name,
'%role' => $roles[$rid],
)), 'admin/user/apply_for_role', t('The role will not be assigned to the user and the user will not be able to apply again.'), t('Deny'));
}