1 user.views.inc | user_views_query_substitutions($view) |
Allow replacement of current user ID so we can cache these queries.
File
- core/
modules/ user/ views/ user.views.inc, line 548 - Provide views data and handlers for user.module.
Code
function user_views_query_substitutions($view) {
global $user;
return array('***CURRENT_USER***' => intval($user->uid));
}