You are here

function date_api_views_query_substitutions in Date 5.2

Avoid problem with bad replacement values for %%d, fixed in Views in January, but not yet available in an offical release.

TODO Once the Views fix gets in an official release, this can be removed.

1 call to date_api_views_query_substitutions()
date_views_field_handler_group in date/date_views.inc

File

./date_api.module, line 1592
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Code

function date_api_views_query_substitutions($view) {
  return array(
    '***SQLD***' => '%%d',
    '***SQLS***' => '%%s',
  );
}