function views_views_query_substitutions

cis7 views.module views_views_query_substitutions($view)
cle7 views.module views_views_query_substitutions($view)
elmsmedia7 views.module views_views_query_substitutions($view)
icor7 views.module views_views_query_substitutions($view)
meedjum_blog7 views.module views_views_query_substitutions($view)
mooc7 views.module views_views_query_substitutions($view)

Substitute current time; this works with cached queries.

File

sites/all/modules/ulmus/views/views.module, line 2110
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'),
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.