1.20.x user.views.inc user_views_query_substitutions($view)

Allow replacement of current user ID so we can cache these queries.

File

modules/user/views/user.views.inc, line 477
Provide views data and handlers for user.module.

Code

function user_views_query_substitutions($view) {
  global $user;
  return array('***CURRENT_USER***' => intval($user->uid));
}