You are here

function calendar_untranslated_days in Calendar 7.3

Same name and namespace in other branches
  1. 5.2 calendar.inc \calendar_untranslated_days()
  2. 6.2 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.

4 calls to calendar_untranslated_days()
calendar_plugin_style::calendar_build_mini_week in includes/calendar_plugin_style.inc
Build one week row.
calendar_plugin_style::calendar_build_month in includes/calendar_plugin_style.inc
Build one month.
calendar_plugin_style::calendar_build_week in includes/calendar_plugin_style.inc
Build one week row.
calendar_week_header in ./calendar.module
Formats the weekday information into table header format

File

./calendar.module, line 396
Adds calendar filtering and displays to Views.

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;
}