You are here

function views_views_query_substitutions in Views (for Drupal 7) 5

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

Substitute current time; this works with cached queries.

File

./views.module, line 2063

Code

function views_views_query_substitutions($view) {
  global $user;
  return array(
    '***CURRENT_TIME***' => time(),
  );
}