Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great if we could apply the Date Popup module as dependency in the revisioning scheduler,
in order to allow the administrator to choose whether (s)he wants to complete the schedule fields as text
or as a date popup.
Thanks,
Alex
Comments
Comment #1
alexkont CreditAttribution: alexkont commentedThe part patch checks only if the date popup module is enabled.
I should create an admin page, too to make the configuration easier for the administrator .
Thanks,
Alex
Comment #2
RdeBoerThanks Alex!
Rik
Comment #3
rv0 CreditAttribution: rv0 commentedWorks, but the validation makes it impossible to publish something right away when clicking the publish link. (probably, because "now" is in the past)
Comment #4
JesseDP CreditAttribution: JesseDP commented@rv0
It seems that date_popup has a problem with the default_value.
Overhere, it seems to work if I make the default_value for revisioning_scheduler_date and revisioning_scheduler_time date('Y-m-d H:i');
Comment #5
gmclelland CreditAttribution: gmclelland commentedFYI... The https://drupal.org/project/revision_scheduler module has a similar issue with the date_popup and default value at https://drupal.org/node/1342828#comment-6740076
The patch that is suggested has the same time format as what is suggested in #4
Comment #6
vellines CreditAttribution: vellines as a volunteer commentedAttached patch is a rewrite of @alexkont's from #1 written against latest in 7.x-1.x-dev. It includes a config setting to enable date popup widget only if the date_popup module is enabled.
Comment #8
vellines CreditAttribution: vellines as a volunteer commentedChanging target version for this issue to -dev since new features are typically implemented there rather than a specific branch.
Comment #10
Olarin CreditAttribution: Olarin at Kosada commentedRe-formatting patch from #6 and making checks for popup setting more consistent.
Comment #11
vipul tulse CreditAttribution: vipul tulse at Cybage Software Pvt Ltd. commented