function restrict_by_ip_settings in Restrict Login or Role Access by IP Address 5
Same name and namespace in other branches
- 6 restrict_by_ip.module \restrict_by_ip_settings()
- 6.2 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 Administer >> Site building menu for displaying the restrict_by_ip.
File
- ./
restrict_by_ip.module, line 45 - Allows the admin to select which IP Addresses can register for this site.
Code
function restrict_by_ip_settings() {
$form['heading'] = array(
'#value' => '<b>' . t('Configuration options for the Restrict By IP module:') . '</b>',
'#weight' => -6,
);
$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."),
'#weight' => -5,
'#default_value' => variable_get('restrict_by_ip_error_page', ''),
);
return system_settings_form($form);
}