Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Drupal 7 Module for Library hours of operation (or any academic organization). Place the library_hours folder in your sites/all/modules directory.

Hours Week: displays hours for all of our library units with public hours in a "today forward" format (today + 6 days) including a version for the header.

Hours Box: displays open/closed hours for the current day for the main library building (Gelman) and for one of the units (Special Collections Research Center). The box uses a shared function and can easily be duplicated to display hours for other units/groups.

API json is cached every fifteen minutes.

Hours are pulled from WRLC's hours API developed by Joel Shields. The admin UI can be accessed here for consortium members: (IP restricted to member campuses). You can see a sample of the json output here:

Customize for Your Institution

Enabling this module on your site will generate the blocks containing our hours and styling! The look and feel can be adjusted in the css file. WRLC members can change the API request for their library.

Outside use (non-WRLC): if you're willing to rework how the json is parsed you can pull from your own API. Don't have one? You can build one using Google Sheets! (or google it -- it's surprisingly simple to configure)


ARCHIVED: former module for implementing Gelman building hours, replaced by the module called library_hours in the repo.







No packages published