Search code examples
drupal-7

Drupal 7 - Is there a possibility to create a revision programmatically without publishing it and maintain original node publish?


I'm working with Drupal 7 and I need to save programmatically a draft node without publishing it but maintain the original node published. I created a new button and when someone clicks on it a function on a custom module try to create a node revision but I have no idea how to do what I wrote up

The user can save as draft the node without lost the originally published node that must be visible to the public view. The save draft must be unpublish and visible only to User owner that can change the node until it will send the request to the administrator to approve the draft node

Someone can tell me how I can do this?

Thanks


Solution

  • Would something like the Save Draft module work? It sounds pretty close to your description.

    https://www.drupal.org/project/save_draft