You are here

function ldap_query_admin_form in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_query/ldap_query.admin.inc \ldap_query_admin_form()
  2. 7.2 ldap_query/ldap_query.admin.inc \ldap_query_admin_form()

Implements the LDAP query 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_query_admin_form'
ldap_query_menu in ldap_query/ldap_query.module

File

ldap_query/ldap_query.admin.inc, line 58
Defines functions for administrative interface for servers

Code

function ldap_query_admin_form($form, &$form_state, $op = NULL, $qid = NULL) {
  ldap_server_module_load_include('php', 'ldap_query', 'LdapQueryAdmin.class');
  $server = new LdapQueryAdmin($qid);
  $form = $server
    ->drupalForm($op);
  return $form;
}