Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to create action to publish one random node from unpublished nodes of one content type. How to do this? Is there a PHP code for this?
Comments
Comment #1
VasyOK CreditAttribution: VasyOK commentedI used
But it's doesn't work.
Maybe any "return" missing?
Comment #2
mitchell CreditAttribution: mitchell commentedUpdated component.
Comment #3
TR CreditAttribution: TR commentedWell, there's a "Publish content" action in D7, I don't know about D6 - and D6 is unsupported now ...