You are here

function rolereference_views_query_substitutions in Role Reference 6

Implementation of hook_views_query_substitutions().

File

views/rolereference.views.inc, line 42

Code

function rolereference_views_query_substitutions() {
  global $user;
  return array(
    '***CURRENT_USER_ROLES***' => implode(array_keys($user->roles), ','),
  );
}