You are here

function ldap_authentication_help in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.4 ldap_authentication/ldap_authentication.module \ldap_authentication_help()
  2. 8.2 ldap_authentication/ldap_authentication.module \ldap_authentication_help()
  3. 8.3 ldap_authentication/ldap_authentication.module \ldap_authentication_help()
  4. 7.2 ldap_authentication/ldap_authentication.module \ldap_authentication_help()

Implements hook_help().

File

ldap_authentication/ldap_authentication.module, line 134
This module injects itself into Drupal's Authentication stack.

Code

function ldap_authentication_help($path, $arg) {
  $authentication_help = t('LDAP authentication allows authentication against an LDAP server.  It
        may be used alongside other authentication means such as built in drupal authentication,
        open id, etc.  More detailed help is available on drupal.org at !helplink.', array(
    '!helplink' => l(LDAP_SERVERS_DRUPAL_HELP_URL, LDAP_SERVERS_DRUPAL_HELP_URL),
  ));
  switch ($path) {
    case 'admin/config/people/ldap/authentication':
      $output = '<p>' . $authentication_help . '</p>';
      return $output;
    case 'admin/help#ldap_authentication':
      $output = '<p>' . $authentication_help . '</p>';
      return $output;
  }
}