diff options
-rw-r--r-- | authfas.module | 24 |
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; } |