Closed (fixed)
Project:
Protected Node
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
31 May 2010 at 20:47 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent
Comments
Comment #1
peter törnstrand commentedSolution, move the code to
hook_init.Comment #2
AlexisWilke commentedHi Blixxxa,
What code did you move to hook_init()?
All the code in hook_nodeapi() requires a node identifier... Can you post a patch?
Thank you.
Alexis
Comment #3
ewa777 commentedI need help with this issues as well blixxxa. If you could offer a patch or some direction I would very much appreciate it. Thanks!
Comment #4
peter törnstrand commentedI have looked through my projects but I can't find the one where I used this solution I'm afraid. I also had a look at the code but I think it has changed since last time. However, you could load the node based on values in
arg(). Changes made to the node will not however persist when made throughhook_init().Have a look at what OG Panels module does:
Perhaps the following code will get you started:
Comment #5
ewa777 commentedThanks for the idea and the help. I decided to not even use it as its functionality can be easily broken by updates of other more useful and frequently updated modules. I spent a bunch of hours just to scrap it. Oh well that happens.
Evan
Comment #6
AlexisWilke commentedHi guys,
Just wondering here... Isn't panel supposed to show multiple nodes? If so, how would you handle the case where several nodes have a different password?
Or do you create a node of type "panel" which would be the one protected?
Thank you.
Alexis
Comment #7
AlexisWilke commentedOkay, the newer version should work since it makes use of hook_init().
Thank you.
Alexis Wilke