Closed (won't fix)
Project:
Drupal core
Version:
5.x-dev
Component:
node.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jan 2006 at 22:13 UTC
Updated:
13 Nov 2006 at 20:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
drummNeeds documentation and actually using them somewhere.
Comment #2
RobRoy commentedNot sure what kind of documentation to put in there. The constants seem pretty self-explanatory. For head so I removed the moderation constants and put the others to use in node.module. There are plenty of places in other modules that could use these, but I'm holding off on that for now as I have a question.
Since they were constants, I put them all in queries like '. NODE_WHATEVER .' instead of using %d, but now I think maybe we should always use %d. Let me know.
Comment #3
Jaza commentedIs this really needed? Surely any programmer can understand
status = 0just as easily asstatus = NODE_NOT_PUBLISHED(perhaps even more easily).I think that this is unnecessary abstraction for simple boolean values. -1.
Comment #4
RobRoy commentedOn second thought, Jaza is probably right. Since these are all boolean values, this is probably not necessary. The reason we have it for comments is because it is not as intuitive: 0 = disabled, 1 = read, 2 = read/write. Marking won't fix.