You are here

function views_views_query_substitutions in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views.module \views_views_query_substitutions()
  2. 5 views.module \views_views_query_substitutions()
  3. 6.3 views.module \views_views_query_substitutions()
  4. 6.2 views.module \views_views_query_substitutions()

Substitute current time; this works with cached queries.

2 calls to views_views_query_substitutions()
views_handler_filter_date::op_between in handlers/views_handler_filter_date.inc
views_handler_filter_date::op_simple in handlers/views_handler_filter_date.inc

File

./views.module, line 2381
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_views_query_substitutions($view) {
  global $language_content;
  return array(
    '***CURRENT_VERSION***' => VERSION,
    '***CURRENT_TIME***' => REQUEST_TIME,
    '***CURRENT_LANGUAGE***' => $language_content->language,
    '***DEFAULT_LANGUAGE***' => language_default('language'),
  );
}