| 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; |
| 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 |
|
|
| 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) { |