Last updated 19 January 2009. Created on 20 December 2003.
Edited by LeeHunter, puregin, Steven, ax. Log in to edit this page.

Note: we now use CONSTANTS in the code so it isn't usually necessary to know these values. You only need them if you are querying the database from a non-Drupal page.

Just documenting the status field for the following tables

NODES

  • 0: not published
  • 1: published

COMMENTS

  • 0: published
  • 1: not published
  • 2: deleted (no longer exists in Drupal 4.5 and above)

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.

Comments

guypark’s picture

The contants for $node->status are:

NODE_NOT_PUBLISHED = 0
NODE_PUBLISHED = 1
davidjmcq’s picture

whoops.. mistake... deleted not relevant