node_load() should be the preferred method to create a node object for an existing node. It allows third-party module to change the node data, or to load the data the third-party module adds to the nodes.
node_load() should be the preferred method to create a node object for an existing node. It allows third-party module to change the node data, or to load the data the third-party module adds to the nodes.
Comments
Comment #1
Anonymous (not verified) commentedThis will not happen for the 1.0 release.
Comment #2
Anonymous (not verified) commentedDon't we just want to know if the node exists and is accessible by the anonymous user? What benefit is it to have all of the node object when we don't use the node data itself?
Comment #3
dave reidOther modules may use data from the node object parameter in node_access(). Not using node_load is just an invitation for something to go wrong or fringe cases that are hard to track down later.
Comment #4
avpadernoEven in the case you are just verifying if the node is accessible from the anonymous user, a module could need some extra fields to decide if the node is accessible.
Comment #5
Anonymous (not verified) commentedComment #6
dave reidAt this point, this issue is going to be marked as won't fix. This is out of the project branch scope.