You are here

function _opening_hours_exclude_blocked in Opening hours 7

Same name and namespace in other branches
  1. 6 includes/opening_hours.pages.inc \_opening_hours_exclude_blocked()

Helper function to exclude blocked days from lookups.

1 string reference to '_opening_hours_exclude_blocked'
opening_hours_crud_api_page in includes/opening_hours.pages.inc
The CRUD API for communication with Backbone.

File

includes/opening_hours.pages.inc, line 129
Page callbacks for the opening hours module.

Code

function _opening_hours_exclude_blocked($instance) {
  return !in_array($instance->date, variable_get('opening_hours_blocked_days', array()));
}