You are here

function ldapdata_admin_settings in LDAP integration 6

Implements the settings page.

Return value

The form structure.

1 string reference to 'ldapdata_admin_settings'
ldapdata_menu in ./ldapdata.module
Implements hook_menu().

File

./ldapdata.admin.inc, line 17
Module admin page callbacks.

Code

function ldapdata_admin_settings() {
  $form['sync'] = array(
    '#type' => 'fieldset',
    '#title' => t('Synchronizing options'),
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
  );
  $form['sync']['ldapdata_sync'] = array(
    '#type' => 'radios',
    '#title' => t('Synchronize LDAP data with Drupal profiles'),
    '#options' => array(
      t('When user logs in. (Use when LDAP rarely changes.)'),
      t('On each page load.'),
      t('Every time user object loaded in Drupal. (May cause high LDAP traffic.)'),
    ),
    '#default_value' => LDAPDATA_SYNC,
    '#description' => t('User edition will always synchronize the data despite the selection above.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  $form['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset to defaults'),
  );
  $form['list']['#value'] = ldapdata_admin_list();
  return $form;
}