Commit 6b69842f authored by Dave Reid's avatar Dave Reid
Browse files

Clear the user entity controller cache when a real name is deleted.

parent 556ebcfb
......@@ -248,6 +248,7 @@ function realname_delete($uid) {
function realname_delete_multiple(array $uids) {
db_delete('realname')->condition('uid', $uids, 'IN')->execute();
drupal_static_reset('realname_load_multiple');
entity_get_controller('user')->resetCache($uids);
}
/**
......@@ -256,6 +257,7 @@ function realname_delete_multiple(array $uids) {
function realname_delete_all() {
db_delete('realname')->execute();
drupal_static_reset('realname_load_multiple');
entity_get_controller('user')->resetCache();
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment