function user_views_query_substitutions

Same name in other branches
  1. 7.x-3.x modules/user.views.inc \user_views_query_substitutions()

Allow replacement of current userid so we can cache these queries

Related topics

File

modules/user.views.inc, line 547

Code

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