You are here

function simple_ldap_sso_configured in Simple LDAP 7

Same name and namespace in other branches
  1. 7.2 simple_ldap_sso/simple_ldap_sso.inc \simple_ldap_sso_configured()

Check to make sure this module is configured properly.

5 calls to simple_ldap_sso_configured()
SimpleLdapSSOTestCase::testSimpleLdapSSO in simple_ldap_sso/simple_ldap_sso.test
Test Simple LDAP SSO.
simple_ldap_sso_detect_sid in simple_ldap_sso/simple_ldap_sso.inc
Detects an existing session from another site.
simple_ldap_sso_init in simple_ldap_sso/simple_ldap_sso.module
Implements hook_init().
simple_ldap_sso_user_login in simple_ldap_sso/simple_ldap_sso.module
Implements hook_user_login().
simple_ldap_sso_user_logout in simple_ldap_sso/simple_ldap_sso.module
Implements hook_user_logout().
1 string reference to 'simple_ldap_sso_configured'
SimpleLdapSSOTestCase::testSimpleLdapSSO in simple_ldap_sso/simple_ldap_sso.test
Test Simple LDAP SSO.

File

simple_ldap_sso/simple_ldap_sso.inc, line 14
Simple LDAP SSO API functions.

Code

function simple_ldap_sso_configured() {
  $configured =& drupal_static(__FUNCTION__);
  if (!isset($configured)) {

    // If there are no error messages, the module is configured.
    $errors = simple_ldap_configuration_errors();
    $configured = empty($errors);
  }
  return $configured;
}