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