Webform changes nodes to always be unpublished upon initial save, so we could use a simple function to enable them.

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new597 bytes

File attached has a new function called install_publish_node() to do this.

James Andres’s picture

Status: Needs review » Closed (won't fix)

Well I agree this is handy, it is highly specific to a single use case and doesn't reduce code complexity. For example, what about settings like moderate=1, revision=1, status=0 do we create functions for these also?

I think it is better to stick to the standard Drupal API of node_load() and node_save().