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().
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | examples.node_access_tests.patch | 19.41 KB | rfay |
| #3 | examples.node_access_d7_tests.patch | 8.93 KB | rfay |
| #1 | examples.d7_node_access_update.patch | 11.71 KB | rfay |
Comments
Comment #1
rfayHere'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.
Comment #2
rfayCommitted: http://drupal.org/cvs?commit=376298.
Comment #3
rfayNow for tests
Comment #4
rfayMore tests, and now demonstrates node listing and search.
Comment #5
rfayCommitted to HEAD: http://drupal.org/cvs?commit=376972