You are here

function merci_hours_get_open_days_in_month in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Wrapper for WorkCalendar::openDays().

1 call to merci_hours_get_open_days_in_month()
merci_hours_date_open_days_ajax in merci_hours/merci_hours.module
Page callback. Returns json array for ajax calls.

File

merci_hours/merci_hours.module, line 402

Code

function merci_hours_get_open_days_in_month($cal = NULL, $year = NULL, $month = NULL) {
  $wc = merci_hours_instantiate($cal);
  list($year, $month, ) = merci_hours_complete_date($year, $month);
  $dates = $wc
    ->getOpenDays($year, $month);
  $context = array(
    'year' => $year,
    'month' => $month,
  );
  drupal_alter('merci_dates_open', $dates, $wc, $context);
  return $dates;
}