function restrict_by_ip_settings in Restrict Login or Role Access by IP Address 6.2
Same name and namespace in other branches
- 5 restrict_by_ip.module \restrict_by_ip_settings()
- 6 restrict_by_ip.module \restrict_by_ip_settings()
Menu callback to configure module settings
1 string reference to 'restrict_by_ip_settings'
- restrict_by_ip_menu in ./
restrict_by_ip.module - Implementation of hook_menu() Add a menu item to the ddminister >> site building menu for displaying the restrict_by_ip
File
- ./
restrict_by_ip.module, line 152 - Allows the admin to select which ip addresses role or a user can login from for this site Some of the code below is taken from the cck_ipaddress_module
Code
function restrict_by_ip_settings() {
//from here is default
$form = array();
$form['restrict_by_ip_error_page'] = array(
'#type' => 'textfield',
'#title' => t('Login denied page'),
'#description' => t("This the address of the page to which the user will be redirected if they are not allowed to login. If you don't set this the user will not know why they couldn't login"),
'#weight' => -5,
'#default_value' => variable_get('restrict_by_ip_error_page', ''),
'#required' => TRUE,
);
return system_settings_form($form);
}