You are here

function calendar_untranslated_days in Calendar 5.2

Same name and namespace in other branches
  1. 6.2 calendar.module \calendar_untranslated_days()
  2. 7.3 calendar.module \calendar_untranslated_days()
  3. 7 calendar.module \calendar_untranslated_days()
  4. 7.2 calendar.module \calendar_untranslated_days()

Array of untranslated day name abbreviations, forced to lowercase and ordered appropriately for the site setting for the first day of week.

The untranslated day abbreviation is used in css classes.

2 calls to calendar_untranslated_days()
calendar_build_week in ./calendar.inc
Build one week row.
calendar_week_header in ./calendar.inc
Formats the weekday information into table header format

File

./calendar.inc, line 413
All the code used while processing a calendar is stored in this file and is included only when needed.

Code

function calendar_untranslated_days() {
  $untranslated_days = date_week_days_ordered(date_week_days_untranslated());
  foreach ($untranslated_days as $delta => $day) {
    $untranslated_days[$delta] = strtolower(substr($day, 0, 3));
  }
  return $untranslated_days;
}