Commit eb1d4a19 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3063213: Time format: Add hook for custom format

parent 8cad6f13
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ function hook_office_hours_time_format_alter(string &$formatted_time) {
  // Translation can be managed on /admin/config/regional/translate.
  $formatted_time = str_replace(['12a.m.-12a.m.'], ['Around the clock'], $formatted_time);
  $formatted_time = str_replace(['00:00-24:00'], ['Around the clock'], $formatted_time);
  $formatted_time = str_replace(['0:00-24:00'], ['Around the clock'], $formatted_time);
  $formatted_time = str_replace(['Around the clock'], ['All day open'], $formatted_time);

  // Translate. Translations can be managed on /admin/config/regional/translate.