node_access hasn't really been worked on for D7 yet, and it can be improved quite a lot.

greggles points out that the private module is a better example, so we may want to import features from that.

For now, I'm setting the .info file's compatibility to 6.x so that people don't mistakenly think this is ready. I'm also removing the mistaken load schema from hook_install().

Comments

rfay’s picture

Status: Active » Needs review
StatusFileSize
new11.71 KB

Here's the D7 version.

Related: #791144: node_access_example.module example for D6 is for D7. The D6 branch has a damaged, incomplete D6 version.

rfay’s picture

Status: Needs review » Fixed
rfay’s picture

Status: Fixed » Needs review
StatusFileSize
new8.93 KB

Now for tests

rfay’s picture

StatusFileSize
new19.41 KB

More tests, and now demonstrates node listing and search.

rfay’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.