public function SimpleLdapUserController::resetCache in Simple LDAP 7
Same name and namespace in other branches
- 7.2 simple_ldap_user/SimpleLdapUserController.class.php \SimpleLdapUserController::resetCache()
Resets the entity cache.
Overrides DrupalDefaultEntityController::resetCache
File
- simple_ldap_user/
SimpleLdapUserController.class.php, line 15 - SimpleLdapUserController class.
Class
- SimpleLdapUserController
- Controller class for LDAP users.
Code
public function resetCache(array $ids = NULL) {
if (isset($ids)) {
foreach ($ids as $id) {
if (isset($this->entityCache[$id]->name)) {
SimpleLdapUser::reset($this->entityCache[$id]->name);
}
}
}
else {
SimpleLdapUser::reset();
}
return parent::resetCache($ids);
}