function merci_load_hours_of_operation in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 6 merci.module \merci_load_hours_of_operation()
- 7.2 includes/api.inc \merci_load_hours_of_operation()
Builds an array representing the hours of operation for the facility.
Return value
An associative array with the following key/value pairs: [php_day_of_week_number_as_in_date_function] => An associative array with the following key/values pairs: 'open' => Opening time (military). 'close' => Closing time (military). 'closed_days' => An array of closed dates in mm-dd format.
4 calls to merci_load_hours_of_operation()
- merci_admin_settings in includes/
merci.admin.inc - Builds the MERCI admininstration settings form.
- merci_check_content_type_restrictions in includes/
api.inc - Checks for reservation restrictions for a content type.
- merci_validate_merci_reservation_date in includes/
api.inc - template_preprocess_merci_conflict_grid in theme/
theme.inc - @file MERCI - Managed Equipment Reservation Checkout and Inventory
File
- includes/
api.inc, line 854 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_load_hours_of_operation($content_type = '') {
return variable_get('merci_hours_operation', array());
}