/[drupal]/contributions/modules/station/schedule/views/station_schedule.views.inc
ViewVC logotype

Diff of /contributions/modules/station/schedule/views/station_schedule.views.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10, Tue Sep 22 21:56:21 2009 UTC revision 1.11, Tue Sep 22 23:47:56 2009 UTC
# Line 1  Line 1 
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().
# Line 70  function station_schedule_views_plugins( Line 70  function station_schedule_views_plugins(
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  /**  /**

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2