You are here

function ldap_user_update_7203 in Lightweight Directory Access Protocol (LDAP) 8.2

Same name and namespace in other branches
  1. 7.2 ldap_user/ldap_user.install \ldap_user_update_7203()

make sure all user entity fields are created

File

ldap_user/ldap_user.install, line 457
Install, update and uninstall functions for the LDAP User module.

Code

function ldap_user_update_7203() {
  if (module_exists('ldap_groups')) {
    module_disable(array(
      'ldap_groups',
      TRUE,
    ));
  }
  $fields_added = ldap_user_update_check_user_fields();
  if (count($fields_added)) {
    $fields = join(', ', $fields_added);
    return t('%fields added to user entity.', array(
      '%fields' => $fields,
    ));
  }
  else {
    return t('no fields needed to be added to user entity.');
  }
}