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 <[email protected]> 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 > >
