This (small) patch splits out publishing and unpublishing. That way one can choose to alloow only scheduled publishing w.o. allowing scheduled unpublishing and v.v.

Attached patch is tested in a 4.7 environment.

Comments

Bèr Kessels’s picture

StatusFileSize
new5.73 KB

Forgot the patch, obviously.

Bèr Kessels’s picture

StatusFileSize
new16.82 KB

And here is a quick preview of how this looks after the patch is applied.

AjK’s picture

Looks good. I'll review tonight.

AjK’s picture

Status: Needs review » Needs work

Deffinitely a useful feature. However, couple of points:

  1. The feature is for 4.7 and I normally don't go around adding new features to lesser versions foreport. I add them to head (or latest release) and then backport them if it really needs to go into a lesser version.
  2. There's no scheduler_update_X function in the .install file. If current users upgraded they'd need to know that the they have set-up scheduling on a per node type basis again. Also, no update function leaves cruft in the variables table.

I'll deff look at putting this into my next update of scheduler thou.

AjK’s picture

Version: 4.7.x-1.x-dev » master
Status: Needs work » Postponed

I'll add this functionality into the next major update to HEAD.

AjK’s picture

StatusFileSize
new6.76 KB

Moving this patch forward a little, here's a new scheduler.install that "splits" the variables for existing module users by adding a new update function (3)

beert’s picture

It would be very usefull to have the ability to allow users only to publish / unpublish / both.

At the moment, I'm using a slightly adapted version of the scheduler.module v5.x, to allow publishing only. But this -ofcourse- cannot be recommended as the appriopriate way to do this.
On the other hand, I seem to recognise in the .pot file the translation fields to implement this feature.

Can we expect a (-dev) release with the necessary patch implemented?

eric-alexander schaefer’s picture

Status: Postponed » Closed (duplicate)

Please followup to #276376: Make scheduler more generic? which would implement this feature in a generic fashion.