Closed (fixed)
Project:
Date single day
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2010 at 18:45 UTC
Updated:
17 Sep 2010 at 07:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
thebuckst0p commentedI did that here, would require a slight change to the module to do the same:
Customizing Drupal date field with hook_form_alter and #after_build
Comment #2
iamer commentedHere's a try at a patch that implements date single day for date_popup_repeat
Comment #3
joachim commentedNot sure what this patch addresses.
Could you explain what this is about please? How do I set up a date field to see the feature this adds?
Some minor code style tweaks needed too. Sorry to be a stickler but I'm at conference and got a million things to work on :)
Space after the comma.
No spaces inside the ().
Don't coddle an else.
Powered by Dreditor.
Comment #4
iamer commentedSo the use case is :
* Create date or date time field with repeat options.
* Single day checkbox doesn't appear in the field options.
I would expect it to be able to handle this date time field as usual.
The patch implements that. I will re-roll with code style fixes, at least I got the indentation correctly this time :)
Thanks.
Comment #5
joachim commentedHere's my version of this with code style fixes.
Could you add a comment to explain what this does please?
also, explain what is being tested here:
Comment #6
iamer commentedThe date time field with repetition options doesn't have a numeric keyed array like the ordinary date time field. So I detect the existence of the rrule component and add the after build and theme functions on the field.
In the theme function, since you selectively render the field parts, the repetition rule fields are missing and have to be rendered alone.
Thanks.
Comment #7
joachim commentedI don't see what's different with your patch.
Could you take mine as a starting point (which has the code style fixes) and add the comments please?
Comment #8
iamer commentedYeah I wasn't really awake, and I attached the wrong patch. Here's one with the comments.
Comment #9
joachim commentedActually, could you use the widget type instead of rrule for that?
That would be more elegant rather than finding things in the $form.
Comment #10
joachim commentedTry this.
Comment #11
perlgal commentedI applied patch from #10 and it works!! You guys rock!!
Thank you!!
Comment #12
perlgal commentedComment #13
joachim commentedThanks for testing the patch! :D
Though note for another time -- the status to set if a patch is good is 'Reviewed & Tested by the Community'. Only a maintainer should set it to 'Fixed', once the patch has been committed... which I am doing now :)
#830670 by iamer, joachim: Added support for 'Date popup and repeat options' widget.