summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-07-10 14:38:59 -0400
committerPaul W. Frields <stickster@gmail.com>2010-07-10 14:38:59 -0400
commitf371f8b118f6c38f6f795f33579fd3b8ab68295d (patch)
tree6b9240f6e51d3bde005a65943652a4d982eca170
parentb5eef23e026dc3891e5055e22ca6f96cf27d4880 (diff)
downloaddrupal-authfas-6x-f371f8b118f6c38f6f795f33579fd3b8ab68295d.tar.gz
drupal-authfas-6x-f371f8b118f6c38f6f795f33579fd3b8ab68295d.tar.xz
drupal-authfas-6x-f371f8b118f6c38f6f795f33579fd3b8ab68295d.zip
Add setting for auth-required FAS group
-rw-r--r--authfas.module24
1 files changed, 17 insertions, 7 deletions
diff --git a/authfas.module b/authfas.module
index ed6c1aa..ed71688 100644
--- a/authfas.module
+++ b/authfas.module
@@ -66,6 +66,16 @@ function authfas_admin() {
* button will allow creation of new rows.
*/
+ // We have a required setting for the Authenticated User role.
+ $form['authfas_authuser_fasgroup'] = array(
+ '#type' => 'textfield',
+ '#title' => t('FAS group required for authenticated users'),
+ '#default_value' => variable_get('authfas_authuser_fasgroup', ''),
+ '#size' => 50,
+ '#maxlength' => 255,
+ '#description' => t('To authenticate when this module is enabled, a user must be a member of this FAS group.'),
+ '#required' => TRUE,
+ );
return system_settings_form($form);
}
@@ -76,13 +86,13 @@ function authfas_menu() {
$items = array();
$items['admin/settings/authfas'] = array(
- 'title' => 'AuthFAS module settings',
- 'description' => 'Settings for authenticating to a FAS instance',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('authfas_admin'),
- 'access arguments' => array('access administration pages'),
- 'type' => MENU_NORMAL_ITEM,
- );
+ '#title' => 'AuthFAS module settings',
+ '#description' => 'Settings for authenticating to a FAS instance',
+ '#page_callback' => 'drupal_get_form',
+ '#page_arguments' => array('authfas_admin'),
+ '#access_arguments' => array('access administration pages'),
+ '#type' => MENU_NORMAL_ITEM,
+ );
return $items;
}