function user_views_query_substitutions in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 modules/user.views.inc \user_views_query_substitutions()
- 5 modules/views_user.inc \user_views_query_substitutions()
- 6.3 modules/user.views.inc \user_views_query_substitutions()
- 7.3 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 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),
);
}