function context_user in Context 6
Same name and namespace in other branches
- 6.3 context.core.inc \context_user()
- 6.2 context.core.inc \context_user()
Implementation of hook_user().
File
- ./
context.core.inc, line 264
Code
function context_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'view' && !empty($account->roles)) {
foreach (array_keys($account->roles) as $rid) {
context_set_by_condition('user', $rid);
}
}
}