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.
By ashiwebi on
I want to check whether the node is published or not .How we can check whether the node is published or not.
Comments
do you mean programmatically
do you mean programmatically (as in PHP)?
You can check the published status of a node by examining "status" in the node object (i.e., $node->status). true means published, false means unpublished.
- Corey
about node status
thanks for help.