function filter_user in Zircon Profile 8
Same name and namespace in other branches
- 8.0 modules/memcache/unstable/memcache-session.inc \filter_user()
Implement hook_user() using a required module's namespace since memcache is not a module and thus can't implement hooks directly.
File
- modules/
memcache/ unstable/ memcache-session.inc, line 19
Code
function filter_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'update') {
// Invalidate cached user object.
cache_clear_all($account->uid, 'users');
}
}