26 Jan
2010
26 Jan
'10
9:18 p.m.
IIRC, you can also just call exit(); after drupal_access_denied(), though I would expect the hook_menu_alter method is more efficient, if only because you avoid triggering all the other (preceding) modules hook_nodeapi('view') implementations unnecessarily. Best, Matt On Tue, Jan 26, 2010 at 8:42 AM, Ernst Plüss <ernst.pluess@gmail.com> wrote:
Hi Drupal friends
I'd like to trigger a access denied page from my hook_nodeapi function up on $op=view.
I already tried:
unset($node->content); drupal_access_denied();
This gives me a strange result: two access denied pages after each other.
Thanks for giving me a hand! Best Regards Ernst