function r4032login_admin_settings in Redirect 403 to User Login 5
Same name and namespace in other branches
- 6 r4032login.module \r4032login_admin_settings()
1 string reference to 'r4032login_admin_settings'
- r4032login_menu in ./
r4032login.module - Implementation of hook_menu().
File
- ./
r4032login.module, line 34 - Redirect denied pages to the user login form.
Code
function r4032login_admin_settings() {
$form = array();
$form['r4032login_display_denied_message'] = array(
'#type' => 'checkbox',
'#title' => t('Display access denied message on login page'),
'#default_value' => variable_get('r4032login_display_denied_message', TRUE),
);
$form['r4032login_user_register_message'] = array(
'#type' => 'textfield',
'#title' => t('User register message'),
'#description' => t('The message to display when a logged-in user tries to register another account through the !new_account. Drupal does not allow it, so regular users must log out first. Administrators should create new users in !link.', array(
'!new_account' => l(t('new account registration form'), 'user/register'),
'!link' => l(t('User management'), 'admin/user/user/create'),
)),
'#default_value' => variable_get('r4032login_user_register_message', t('You are not authorized to access this page.')),
);
return system_settings_form($form);
}