You are here

function context_ui_user in Context 5

Implementation of hook_user().

File

context_ui/context_ui.module, line 312

Code

function context_ui_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'view') {
    context_ui_set('user', array_keys($account->roles));
  }
}