function views_views_query_substitutions in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 5 views.module \views_views_query_substitutions()
- 6.3 views.module \views_views_query_substitutions()
- 6.2 views.module \views_views_query_substitutions()
- 7.3 views.module \views_views_query_substitutions()
Substitute current time; this works with cached queries.
File
- ./
views.module, line 2050 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_views_query_substitutions($view) {
return array(
'***CURRENT_VERSION***' => VERSION,
'***CURRENT_TIME***' => REQUEST_TIME,
'***CURRENT_LANGUAGE***' => language(LANGUAGE_TYPE_CONTENT)->langcode,
'***DEFAULT_LANGUAGE***' => language_default()->langcode,
);
}