You are here

function _event_day_of_week in Event 5.2

Same name and namespace in other branches
  1. 5 event.module \_event_day_of_week()

Return the day of week with start of week offset applied

Parameters

$date date array:

Return value

integer day of the week

6 calls to _event_day_of_week()
event_calendar_data in ./event.module
Returns an array of nodes that occur on a given date. Handles content type and taxonomy filters.
event_calendar_day in ./event.module
Displays a daily event calendar.
event_calendar_month in ./event.module
Displays a monthly event calendar.
event_calendar_table in ./event.module
Creates a themed table of events.
event_calendar_week in ./event.module
Displays a weekly event calendar.

... See full list

File

./event.module, line 1438

Code

function _event_day_of_week($date) {
  $dow = gmdate('w', gmmktime(12, 0, 0, $date['month'], $date['day'], $date['year']));
  $dow = variable_get('date_first_day', 1) ? $dow == 0 ? 6 : --$dow : $dow;
  return $dow;
}