| 1 |
<?php |
<?php |
| 2 |
// $Id: station_schedule.views.inc,v 1.9 2009/09/21 21:36:20 drewish Exp $ |
// $Id: station_schedule.views.inc,v 1.10 2009/09/22 21:56:21 drewish Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_views_handlers(). |
* Implementation of hook_views_handlers(). |
| 70 |
* Implementation of views_query_substitutions(). |
* Implementation of views_query_substitutions(). |
| 71 |
*/ |
*/ |
| 72 |
function station_schedule_views_query_substitutions($view) { |
function station_schedule_views_query_substitutions($view) { |
| 73 |
return array('***CURRENT_STATION_MINUTE***' => station_minute_from_local_ts()); |
$minute = station_minute_from_local_ts(); |
| 74 |
|
return array( |
| 75 |
|
'***STATION_CURRENT_MINUTE***' => $minute, |
| 76 |
|
'***STATION_CURRENT_DAY_IN_MINUTES***' => $minute - ($minute % MINUTES_IN_DAY), |
| 77 |
|
); |
| 78 |
} |
} |
| 79 |
|
|
| 80 |
/** |
/** |