-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpenn403.admin.inc
More file actions
27 lines (25 loc) · 936 Bytes
/
penn403.admin.inc
File metadata and controls
27 lines (25 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* @file
* penn403.admin.inc
*
* Form functions for the administration pages for the Penn403 module
*/
/**
* function penncourse_admin_settings()
*
* build penncourse administrative settings form
*/
function penn403_admin_settings() {
$form['penn403_auto_redirect'] = array(
'#type' => 'radios',
'#title' => t('Auto redirect'),
'#options' => array(
'yes' => t('Yes'),
'no' => t('No'),
),
'#default_value' => variable_get('penn403_auto_redirect', 'yes'),
'#description' => t('By default, then Penn 403 module will automatically redirect anonymous users to PennKey login if they encounter a 403 access denied error. This behavior may not be desired in a site that supports mixed authentication. If this option is set to No, the user will be presented with a theme-able 403 error page that includes a link to PennKey authentication.'),
);
return system_settings_form($form);
}