Closed (fixed)
Project:
Examples for Developers
Version:
6.x-1.x-dev
Component:
Node Access Example
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 May 2010 at 03:58 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rfayYou're surely right. Let's see if we can sort this out.
Comment #2
jhodgdonMoving to correct queue
Comment #3
rfayActually, I'm not able to figure out what you mean - please help me.
The D6 version of the node_access_example.module in http://drupal.org/project/examples has hook_perm(), the D6 version.
The version on the API site: http://api.drupal.org/api/drupal/developer--examples--node_access_exampl..., has hook_perm(), the D6 version.
Can you help me understand with some links or something? Or perhaps the API site had a glitch?
I should mention too, @Guy, that your participation here is welcome. Patches are solicited. And the node_access.module needs an update to D7 (and probably other help). And it needs tests.
Comment #4
rfayMarked #786464: node_access_example_perm() returns wrong format as a dup of this one.
Comment #5
rfayOK, so it has hook_perm(), but it has it in the D7 format. And all the rest of your comments are right.
We've never even worked on this one, but somehow got a partially-converted D7 version in here in the initial copy. I'm not even sure if we have the original D6 version around now, so perhaps will have to work backward. Use the private module?
Comment #6
dave reidHere's the relevant rollback to the latest version that was in contributions/docs/examples.
Comment #7
dave reidBetter patch with a few cleanups.
Comment #8
rfayWith slight changes, and now it works - one more D7-ism removed.
Thanks so much for the archaelogy, davereid. Finally we get this cleaned up.
It still needs tests and a going-over, but at least it won't be there just confusing people any more.
Comment #9
rfayWow, thanks Dave. Finally got this cleaned up. Committed to DRUPAL-6--1
http://drupal.org/cvs?commit=405846