function merci_hours_get_open_days_in_year in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Wrapper for WorkCalendar::openDays().
1 call to merci_hours_get_open_days_in_year()
- merci_hours_date_popup_process_alter in merci_hours/
merci_hours.module - Implements hook_date_popup_process_alter().
File
- merci_hours/
merci_hours.module, line 388
Code
function merci_hours_get_open_days_in_year($cal = NULL, $year = NULL) {
$wc = merci_hours_instantiate($cal);
list($year, , ) = merci_hours_complete_date($year);
$dates = $wc
->getOpenDays($year);
$context = array(
'year' => $year,
);
drupal_alter('merci_dates_open', $dates, $wc, $context);
return $dates;
}