function views_views_query_substitutions in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views.module \views_views_query_substitutions()
- 5 views.module \views_views_query_substitutions()
- 6.3 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 1150 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_views_query_substitutions($view) {
global $language;
return array(
'***CURRENT_VERSION***' => VERSION,
'***CURRENT_TIME***' => time(),
'***CURRENT_LANGUAGE***' => $language->language,
'***DEFAULT_LANGUAGE***' => language_default('language'),
'***NO_LANGUAGE***' => '',
);
}