You are here

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

Complete empty date parts with today values.

3 calls to merci_hours_complete_date()
merci_hours_day_is_open in merci_hours/merci_hours.module
Wrapper for WorkCalendar::isOpenDay().
merci_hours_get_open_days_in_month in merci_hours/merci_hours.module
Wrapper for WorkCalendar::openDays().
merci_hours_get_open_days_in_year in merci_hours/merci_hours.module
Wrapper for WorkCalendar::openDays().

File

merci_hours/merci_hours.module, line 378

Code

function merci_hours_complete_date($year, $month = NULL, $day = NULL) {
  $year = is_null($year) ? date('Y') : $year;
  $month = is_null($month) ? date('m') : $month;
  $day = is_null($day) ? date('d') : $day;
  return array(
    $year,
    $month,
    $day,
  );
}