You are here

function ldap_servers_admin_form in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_servers/ldap_servers.admin.inc \ldap_servers_admin_form()
  2. 7 ldap_servers/ldap_servers.admin.inc \ldap_servers_admin_form()

Implements the LDAP server edit page.

Parameters

$form_state: A form state array.

$op: An operatin - add or edit.

$sid: A LDAP server ID.

Return value

The form structure.

1 string reference to 'ldap_servers_admin_form'
ldap_servers_menu in ldap_servers/ldap_servers.module

File

ldap_servers/ldap_servers.admin.inc, line 52
Defines functions for administrative interface for servers

Code

function ldap_servers_admin_form($form, &$form_state, $op = NULL, $sid = NULL) {
  ldap_servers_module_load_include('php', 'ldap_servers', 'LdapServerAdmin.class');
  $server = new LdapServerAdmin($sid);
  $form = $server
    ->drupalForm($op);
  return $form;
}