You are here

function ldap_servers_update_7107 in Lightweight Directory Access Protocol (LDAP) 7.2

Same name and namespace in other branches
  1. 8.2 ldap_servers/ldap_servers.install \ldap_servers_update_7107()

Remove allow_conflicting_drupal_accts from ldap_servers table.

File

ldap_servers/ldap_servers.install, line 320
Install, update and uninstall functions for the LDAP API module.

Code

function ldap_servers_update_7107() {
  if (ldap_servers_db_field_exists('ldap_servers', 'allow_conflicting_drupal_accts')) {
    db_drop_field('ldap_servers', 'allow_conflicting_drupal_accts');
    $msg = t('"allow_conflicting_drupal_accts" field removed from ldap_servers table');
  }
  return $msg ? $msg : t('No database changes made.');
}