function flag_views_query_substitutions in Flag 6.2
Same name and namespace in other branches
- 8.4 flag.views_execution.inc \flag_views_query_substitutions()
- 7.3 includes/views/flag.views.inc \flag_views_query_substitutions()
- 7.2 includes/flag.views.inc \flag_views_query_substitutions()
Implements hook_views_query_substitutions().
Allow replacement of current user's session id so we can cache these queries.
File
- includes/
flag.views.inc, line 244 - Provides support for the Views module.
Code
function flag_views_query_substitutions() {
return array(
'***FLAG_CURRENT_USER_SID***' => flag_get_sid(),
);
}