You are here

function event_calendar_list in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \event_calendar_list()

Creates a themed list of events.

Parameters

$op :

$stamp The timestamp:

$endstamp end of the menu:

$types:

$terms:

Return value

A themed list of events.

Related topics

1 call to event_calendar_list()
event_page in ./event.module
Displays a page containing event information. The page layout defaults to a graphical calendar.

File

./event.module, line 672

Code

function event_calendar_list($op, $stamp, $endstamp, $types = NULL, $terms = NULL) {
  $today = _event_user_date();
  $rows = '';
  while ($stamp <= $endstamp) {
    $year = gmdate('Y', $stamp);
    $month = gmdate('m', $stamp);
    $cur_day = gmdate('j', $stamp);
    $month_name = gmdate('M', $stamp);
    $dow = _event_day_of_week($stamp);
    $weekdays = event_week_days();
    $rows .= event_render_day($year, $month, $cur_day, 'list', $types, $terms);
    $stamp += 86400;
  }
  return $rows;
}