| 1 |
<?php
|
| 2 |
// $Id: ldap_lookup.admin,v 1.2 2007/09/26 09:57:27 kibble Exp $
|
| 3 |
|
| 4 |
function ldap_lookup_admin_settings() {
|
| 5 |
|
| 6 |
$form = array();
|
| 7 |
|
| 8 |
$form['ldap_lookup_default_email'] = array(
|
| 9 |
'#type' => 'textfield',
|
| 10 |
'#title' => t('Default Email Address'),
|
| 11 |
'#default_value' => variable_get('ldap_lookup_default_email', 'support@email.com'),
|
| 12 |
'#description' => t('Sets default email address to newly registered users if email is blank within their Active Directory record.')
|
| 13 |
);
|
| 14 |
|
| 15 |
$form['ldap_lookup_set_email'] = array(
|
| 16 |
'#type' => 'radios',
|
| 17 |
'#title' => t('User Set Emails'),
|
| 18 |
'#default_value' => variable_get('ldap_lookup_set_email', 0),
|
| 19 |
'#options' => array(1 => t('Enabled'), 0 => t('Disabled')),
|
| 20 |
'#description' => t('Allows users to set their own email addresses.')
|
| 21 |
);
|
| 22 |
|
| 23 |
$form['ldap_lookup_enable_ntlm'] = array(
|
| 24 |
'#type' => 'radios',
|
| 25 |
'#title' => t('Enable NTLM'),
|
| 26 |
'#default_value' => variable_get('ldap_lookup_enable_ntlm', 0),
|
| 27 |
'#options' => array(1 => t('Enabled'), 0 => t('Disabled'))
|
| 28 |
);
|
| 29 |
|
| 30 |
return system_settings_form($form);
|
| 31 |
}
|
| 32 |
|
| 33 |
?>
|