function hook_views_query_substitutions


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 views.api.php hook_views_query_substitutions($view)
cle7 views.api.php hook_views_query_substitutions($view)
elmsmedia7 views.api.php hook_views_query_substitutions($view)
icor7 views.api.php hook_views_query_substitutions($view)
meedjum_blog7 views.api.php hook_views_query_substitutions($view)
mooc7 views.api.php hook_views_query_substitutions($view)

Performs replacements in the query before being performed.


$view: The View being executed.

Return value

An array with keys being the strings to replace, and the values the strings to replace them with. The strings to replace are ofted surrounded with '***', as illustrated in the example implementation.

Related topics

3 functions implement hook_views_query_substitutions()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

node_views_query_substitutions in sites/all/modules/ulmus/views/modules/
Implements hook_views_query_substitutions().
user_views_query_substitutions in sites/all/modules/ulmus/views/modules/
Allow replacement of current userid so we can cache these queries
views_views_query_substitutions in sites/all/modules/ulmus/views/views.module
Substitute current time; this works with cached queries.
3 invocations of hook_views_query_substitutions()
views_data_export_plugin_query_default_batched::execute in sites/all/modules/local_contrib/views_data_export/plugins/
Executes the query and fills the associated view object with according values.
views_plugin_query_default::execute in sites/all/modules/ulmus/views/plugins/
Executes the query and fills the associated view object with according values.
views_plugin_query_default::query in sites/all/modules/ulmus/views/plugins/
Generate a query and a countquery from all of the information supplied to the object.


sites/all/modules/ulmus/views/views.api.php, line 791
Describe hooks provided by the Views module.


function hook_views_query_substitutions($view) {
  // Example from views_views_query_substitutions().
  global $language_content;
  return array(
    '***CURRENT_LANGUAGE***' => $language_content->language,
    '***DEFAULT_LANGUAGE***' => language_default('language'),



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.