function ldap_user_update_7203 in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.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 451 - Install, update and uninstall functions for the LDAP User module.
Code
function ldap_user_update_7203() {
if (module_exists('ldap_groups')) {
module_disable([
'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.', [
'%fields' => $fields,
]);
}
else {
return t('no fields needed to be added to user entity.');
}
}