Skip to content
Snippets Groups Projects
Commit eb1d4a19 authored by John Voskuilen's avatar John Voskuilen
Browse files

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

parent 8cad6f13
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment