nid .'/view/'. drupal_strtolower(station_day_name(date('w'))));
}
function theme_station_schedule_hour($hour) {
$class = 'station-sch-box station-sch-hour';
$height = 60;
$output = "
";
$output .= theme('station_hour', $hour * 60);
$output .= "
\n";
return $output;
}
function theme_station_schedule_spacer($start, $finish) {
$class = 'station-sch-box station-sch-unscheduled';
$height = ($finish - $start);
$output = "";
$output .= "". theme('station_hour_range', $start, $finish) ."";
$output .= "
\n";
return $output;
}
function theme_station_schedule_item($start, $finish, $program) {
$class = 'station-sch-box station-sch-scheduled';
$height = ($finish - $start);
$link = url('node/'. $program->nid);
$time = theme('station_hour_range', $start, $finish);
$output = "\n";
return $output;
}
/**
* Print a day's schedule page.
*/
function station_schedule_day_page($node, $day) {
if ($view = views_get_view('station_schedule_day')) {
$display_id = 'default';
if ($view->access($display_id)) {
return $view->execute_display($display_id, array($node->nid, $day));
}
$view->destroy();
}
return drupal_not_found();
}