Active
Project:
Work Calendar
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2014 at 16:37 UTC
Updated:
14 Aug 2018 at 12:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jonhattanThis is part of the "future plans".
Comment #2
hockey2112 commentedComment #3
lahode commentedHi there,
Please find a patch that will do the work. I added a textarea in the work calendar entity, where your can put the dates separate by a break line (eg.
2015-01-18
2015-02-15
2015-02-21
It will exclude those day in the calendar (tested with date restrictions)
I know it can be improved (I didn't do any hook_update_N for instance, so at this point if you add the patch, you need to reinstall the module).
Anyway, hope it might help
Cheers
Comment #4
jonhattan@lahode thanks for your effort, but I want to implement this in other direction. The key points are:
* Find a way to store month/day to the database. That is, exclude year, since it must work for any year.
* #2071337: Leverage weekdays module and use weekdays_days_in_date_range() to actually include/exclude dates.
Comment #5
Denial commented@lahode thanks very much, exactly what I needed, works as intended.
Comment #6
Abelito commented@Iahode Thanks!
This patch works with the latest dev version when applied manually.
@jonhattan You can use this for either include or exclude if you use the Date Restriction module. That setting is found when editing the field type.
Comment #7
lazzyvn commentedHello,


I have new patch you can add yours holidays, your vacations here some demo
Comment #8
lazzyvn commentedUpdate #7 for alter day