Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This release contains new features, some fixed errors and code housekeeping.
The following new features are introduced:
Issue #2828834: Add Views Filter handler for Open/Closed (now/soon/never)
Issue #3307517: Support Exception Days for 'current' formatter
Issue #3367013: Allow to remove values that weren't submitted in widget
Issue #3376856: Allow more day separators, next to line breaks in formatter
Issue #3392219: Fix season header label class in formatter
This release adds some bug fixing, especially in the area of the new 'seasons' and 'exception dates'.
Issue #3219111: Code cleaning
Issue #3355460: Sort exception days from soonest to latest - fix case sensitive typo
Issue #3361308: isOpen()/getCurrent() does not respect given time
Issue #3362433: Better validation of Season header
Issue #3363013: Day 0 missing in 1.9 on PHP8
Issue #3363479: Fix 'Select List' Time Validation
Issue #3366295 by Ahmad Smhan: #Element_validate: Unsupported operand types
This release is created relatively shortly after the previous release 1.7, in order to improve/fix some feature that were introduced in that release 1.7. Many thanks to @ebremner, for being an early adapter, and for testing, reporting and fixing problems.
- Issue #3297751: Drupal 10 is now supported
- Issue #1743366: Add "Seasonal Hours / Duration" feature, so future seasons can be maintained in the widget, and displayed in the formatter.
- Issue #3321335: Add hook_help()
- Issue #3321390: Replace README.txt with README.md
Improvements in render caching:
- Issue #3312511: Add hook_cron() for Status formatter: caching for anonymous users
- Issue #3318551: Fix Field caching for Open/Closed formatter
This release resolves the following errors:
Issue #2919519 by Anybody: 'Open now' formatter fails with boost / cache
Issue #3000228 by shevchess, sheld0r: Empty day field leads to PDOException
This release mainly contains improvements to the widget:
Issue #2872213: Several fixes for better UX in widget
Issue #2871014: PHP 7 warning when lowering number of slots per day
Issue #2872744: Only last comment is shown in formatter
Issue #2960454: Migration field plugins has fixed field name
Issue #2960998: Migration field plugins and classes renamed
Issue #2954016 by lorenzs: The office_hours_Migration field plugin must define the sourcse and destination modules
Issue #2936931: Plain status formatter not clean
Issue #2937346: Invalid argument in OfficeHoursFormatterBase->getStatusTimeLeft()
Issue #2936907 by ywhe: Fix link 'Add time slot' inconsistencies after 'Copy previous day' in Widget
Issue #2919651: Remove CSS 'width: 1px' in .field--type-office-hours formatter
This version contains some bug fixes, introduced in version 1.6 / 1.5:
Issue #2345771: "First day of the week" setting should be respected in Widget
Issue #2863233: Make the new 'Comment' per entry optional and opt-in
Issue #2863374 by attheshow: Issue upgrading from 1.0 to 1.6
Issue #2863449 by attheshow: filter_xss_admin() Strips out Label Widths
and also:
Issue #2860682: Add dependency on Field module
The first named release. Fully functional, but needs some more love in the Widget (javascript) and the formatter (css).
Contains a fix for updates from dev-versions.
This release contains a security fix.
This release contains a new feature: you can now add a comment to each time slot.
Release notes:
Issue #2859948: Apply coding standards - move .theme.inc into includes directory
Issue #2553935 by ripz0r: Add a comment field to each time slot
Issue #160135: Filter formatter output
Issue #2572823 by Kpolymorphic: Office hours block doesnt respect 'required' field setting.
Issue #2808909 by Roshni Patel, tejal.patel: Format dates with periods (a.m.
Issue #2553501 by uberhacker, Taran2L, dpovshed, sarav.din33: Midnight Values
Issue #2450191 by danbohea: Be more specific when listing dependencies so tha...
Issue #2212715: Use generic texts, to support all languages automatically.
Issue #2212715: Remove context day_name for t(dayname) j
Issue #2049805 by mwisner, johnv: Alternative Widget
Fixed coder issues
Issue #2508753 by Alan D.: Add drupal_alter to allow users to update the item...
Issue #2026191: Added formatter option to show time with leading zeroes.
Issue #2005614: Fixed hook_update_7100 does not work for entity type 'taxonomy_term' (and possibly other entity types other then 'node').
Issue #2005614: Fixed performance of hook_update_7001 by not updating empty fields.
Issue #2015667: Fixed 'Show next open day' display fails on Sunday.
Please run UPDATE.PHP after installing this release!
List of Most important new features:
Added documentation in README.txt on Views support and features.
Added basic Views 3 support.
Issue #1362638: Added First_day_of_week parameter to field formatter.
Issue #1710258 by jonhattan, johnv: Added more then 2 timeblocks per day
Issue #1168126 by jonhattan: Added Default value: now for every day of the week.
Issue #1606886: 'Current status' feature on formatter + a new 1-line 'current/next day' format.
This is the first official D7 release of Office hours. Next to just porting the D6-version of the widget, it contains a customizable formatter, allowing you to show the Office hours in any way you like.
Fixing a number of existing bugs such as 227138.
Added features: option to validate user input so that opening hours are not later than closing hours
When the user adds two consecutive blocks of the same day, the name of the day in the second block is hidden by css, e.g sunday 8:00-12:00 16:00-19:00.
number of additional blocks showing is determined by the admin.
Fixing a number of existing bugs such as 227138.
Added features: option to validate user input so that opening hours are not later than closing hours
When the user adds two consecutive blocks of the same day, the name of the day in the second block is hidden by css, e.g sunday 8:00-12:00 16:00-19:00.
number of additional blocks showing is determined by the admin.
Fixing a number of existing bugs such as 227138.
Added features: option to validate user input so that opening hours are not later than closing hours
When the user adds two consecutive blocks of the same day, the name of the day in the second block is hidden by css, e.g sunday 8:00-12:00 16:00-19:00.
number of additional blocks showing is determined by the admin.