You are here

function hook_ldap_server_search_results_alter in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_servers/ldap_servers.api.php \hook_ldap_server_search_results_alter()
  2. 8.3 ldap_servers/ldap_servers.api.php \hook_ldap_server_search_results_alter()
  3. 7.2 ldap_servers/ldap_servers.api.php \hook_ldap_server_search_results_alter()

Allow the results from the ldap search answer to be modified The query parameters are provided as context infomation (readonly)

1 invocation of hook_ldap_server_search_results_alter()
LdapServer::search in ldap_servers/LdapServer.class.php
Perform an LDAP search.

File

ldap_servers/ldap_servers.api.php, line 13

Code

function hook_ldap_server_search_results_alter(&$entries, $ldap_query_params) {

  // look for a specific part of the $results array
  // and maybe change it
}