In hook_node_update(), I can easily tell the 'status' of a node (whether it's published or not) after it's been updated.
However, is there an easy way to check to see if the updated node was published, but now is not? (Or vice-versa)?
I think Rules might have some condition for 'node value has changed' or something along those lines, but I'd like to do this programmatically.
I found this issue by fago (developer of Rules) on drupal.org that seems to deal with this in Drupal 7, but a nice explanation would be appreciated.