You are here

function ldap_query_list 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_list()
  2. 7.2 ldap_query/ldap_query.admin.inc \ldap_query_list()

LDAP queries list.

Parameters

$qid: query id. if empty list all queries

$actions: True or False indicating if query edit, delete, enable, disable, etc links should show in table

Return value

The HTML table with the servers list.

1 call to ldap_query_list()
ldap_query_index in ldap_query/ldap_query.admin.inc

File

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

Code

function ldap_query_list($qid = NULL, $actions = FALSE) {
  $ldap_queries = ldap_query_get_queries($qid, 'all');
  $variables = array(
    'ldap_queries' => $ldap_queries,
    'action' => TRUE,
    'type' => 'table',
  );
  $html = theme('ldap_query_list', $variables);
  return $html;
}