You are here

function ldapauth_admin_import_form in LDAP integration 6

Import server settings form .

1 string reference to 'ldapauth_admin_import_form'
ldapauth_menu in ./ldapauth.module
Implements hook_menu().

File

./ldapauth.admin.inc, line 753
Module admin page callbacks.

Code

function ldapauth_admin_import_form($form_state) {
  $form = array(
    'info' => array(
      '#type' => 'markup',
      '#value' => '<p>' . t('Paste the text from the export a server option here to create a <b>new</b> server with the same options.') . '</p><p>' . t('Notes:') . '<ul><li>' . t('The imported server name can not duplicate any existing server name') . '</li><li>' . t('If the ldapdata or ldapgroups modules were enabled on the source server, they will need to be enabled on this server.') . '</li><li>' . t('If this server config is replacing an existing server config, there may be user data issues. Users may be marked with the old database sid value rather than the imported value.') . '</li></ul></p>',
    ),
    'import' => array(
      '#type' => 'textarea',
      '#rows' => 20,
    ),
    'submit' => array(
      '#type' => 'submit',
      '#value' => t('Import'),
    ),
  );
  return $form;
}