function flag_views_query_substitutions in Flag 7.2
Same name and namespace in other branches
- 8.4 flag.views_execution.inc \flag_views_query_substitutions()
- 6.2 includes/flag.views.inc \flag_views_query_substitutions()
- 7.3 includes/views/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 215 - Provides support for the Views module.
Code
function flag_views_query_substitutions() {
return array(
'***FLAG_CURRENT_USER_SID***' => flag_get_sid(),
);
}