I have a view page which display node titles?
I'm also using workbench moderation module. During views rendering I check nodes and on certain condition I'm publishing the node from draft state using
So is there any views hook Where i can use to set a revision of a node to publish and then views fetch the node's updated data?
I have tried
hook_preprocess_views_view(&$vars) but it moderate the node to publish but then display the updated data on 2nd page referesh.