You are here

function simple_ldap_user_update_7100 in Simple LDAP 7.2

Same name and namespace in other branches
  1. 7 simple_ldap_user/simple_ldap_user.install \simple_ldap_user_update_7100()

Update configuration variables.

File

simple_ldap_user/simple_ldap_user.install, line 68
simple_ldap_user module installation.

Code

function simple_ldap_user_update_7100(&$sandbox) {

  // simple_ldap_user_objectclass should be an array.
  $objectclass = variable_get('simple_ldap_user_objectclass', NULL);
  if (!is_array($objectclass)) {
    variable_set('simple_ldap_user_objectclass', array(
      $objectclass,
    ));
  }

  // simple_ldap_user_map has changed name and format.
  $attribute_map = variable_get('simple_ldap_user_map', array());
  if (!empty($attribute_map)) {
    return t('The "simple_ldap_user_map" variable has changed name and format.  The new variable name is "simple_ldap_user_attribute_map", and the format is outlined in simple_ldap_user/README.txt.  Please update settings.php accordingly.');
  }
}