Loading office_hours.api.php +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
office_hours.api.php +1 −0 Original line number Diff line number Diff line Loading @@ -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. Loading