function pages_restriction_admin_form in Pages Restriction Access 7
Administration form for Restriction Pages.
See also
1 string reference to 'pages_restriction_admin_form'
- pages_restriction_menu in ./
pages_restriction.module - Implements hook_menu().
File
- ./
pages_restriction.admin.inc, line 13 - Contains the Configuration Page for the Pages Restriction.
Code
function pages_restriction_admin_form($form, &$form_state) {
$form['pages_restriction_rules'] = array(
'#title' => t("Pages access configuration rules:"),
'#type' => 'textarea',
'#description' => t('<p><strong>Configure here the pages access rules.</strong><br>Ex: <b>homepage|about-us</b> will block access to about-us page and redirect to homepage.</p>'),
'#default_value' => variable_get('pages_restriction_rules'),
);
$form['pages_restriction_debug_mode'] = array(
'#title' => t("Turn Debug Mode On"),
'#type' => 'checkbox',
'#description' => t('It will print useful information on DB Log.'),
'#default_value' => variable_get('pages_restriction_debug_mode', FALSE),
);
return system_settings_form($form);
}