function event_views_views_query_substitutions in Event Views 5.2
Same name and namespace in other branches
- 6.2 event_views.module \event_views_views_query_substitutions()
Substitute current time; this works with cached queries.
File
- ./
event_views.module, line 252 - Views-enables the event module.
Code
function event_views_views_query_substitutions($view) {
return array(
'***CURRENT_DATETIME***' => gmdate('Y-m-d H:i', time()),
);
}