/[drupal]/contributions/modules/webserver_auth/webserver_auth.module
ViewVC logotype

Diff of /contributions/modules/webserver_auth/webserver_auth.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.18, Tue Apr 24 01:17:45 2007 UTC revision 1.19, Mon Mar 10 21:43:42 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: webserver_auth.module,v 1.17 2007/04/24 01:09:26 weitzman Exp $  // $Id: webserver_auth.module,v 1.18 2007/04/24 01:17:45 weitzman Exp $
3    
4    function webserver_auth_menu($may_cache) {
5      if ($may_cache) {
6        $items[] = array(
7          'title' => t('Webserver authentication'),
8          'path' => "admin/settings/webserver_auth",
9          'callback' => "drupal_get_form",
10          'callback arguments' => array('webserver_auth_settings'),
11          'description' => t('Configure a domain for generating email addresses. Optional.'),
12        );
13      }
14      return $items;
15    
16    }
17    
18  function webserver_auth_init() {  function webserver_auth_init() {
19    global $user, $account;    global $user, $account;
# Line 20  function webserver_auth_init() { Line 34  function webserver_auth_init() {
34        // only loaded modules will see this hook        // only loaded modules will see this hook
35        module_invoke_all("webserver_auth");        module_invoke_all("webserver_auth");
36        // if we are in bootstrap, load user.module ourselves        // if we are in bootstrap, load user.module ourselves
37        if (!module_exist('user')) {        if (!module_exists('user')) {
38         drupal_load('module', 'user');         drupal_load('module', 'user');
39        }        }
40    
# Line 73  function webserver_auth_settings() { Line 87  function webserver_auth_settings() {
87      '#default_value' => variable_get("webserver_auth_domain", ""),      '#default_value' => variable_get("webserver_auth_domain", ""),
88      '#size' => 30,      '#size' => 30,
89      '#maxlength' => 55,      '#maxlength' => 55,
90      '#description' => t("Append this domain name to each new user in order generate his email address."),      '#description' => t("Append this domain name to each new user in order generate his email address. Currently only used for NTLM authentication."),
91      );      );
92    return $form;    return system_settings_form($form);
93  }  }
94    
95  function webserver_auth_help($section) {  function webserver_auth_help($section) {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

  ViewVC Help
Powered by ViewVC 1.1.2