Need some creative help (or obvious answer/new module I'm missing). Still rusty in Drupal, so bear with me here...
Using: Domain Access, Revisioning, and custom module using hook_node_presave() specifically here.
Goal: That when you Save a node in node edit, that it publishes to "staging" environments or selected domains in domain access. When you Publish a node in node edit, it publishes to all selected environments and their "staging" equivalents. Ideally, revision 1 would be live where revision 2 would be in the staging domains. When publishing, they all become revision 2 or 3.
Problem: When you save only to the staging domains, it sets publish status to 0 in the form with $node->domains array, which removes the last revision of the node on the live domains. I need new save to go to certain domains and old version to remain published.
Notes: No user has the right in this setup to unpublish or delete a node unless you are me. (I'm special, or userid 1.) So removing unpublishing functionality altogether is not an issue here. Assume everything always stays published once the node is created. Would prefer to do this custom rather than use another module.
Current: I have all the logic setup to do this and is working properly except that when the node saves, it unpublishes from the original domains if it's not a new node. Looking for any help here!! Thank you.