function availability_calendar_format_entry_date in Availability Calendars 7.4
Same name and namespace in other branches
- 7.5 availability_calendar.inc \availability_calendar_format_entry_date()
- 7.3 availability_calendar.inc \availability_calendar_format_entry_date()
Formats a date according to the - possibly localized - 'Availability Calendar date entry' date type.
Parameters
DateTime $date:
Return value
string
1 call to availability_calendar_format_entry_date()
- availability_calendar_handler_filter_availability::value_form in views/
availability_calendar_handler_filter_availability.inc - Add validation and date popup(s) to the value form.
File
- ./
availability_calendar.inc, line 271
Code
function availability_calendar_format_entry_date($date) {
$date_type = 'availability_calendar_date_entry';
return format_date($date
->getTimestamp(), $date_type);
}