[development] How to trigger access denied page from hook_nodeapi

Ernst Plüss ernst.pluess at gmail.com
Tue Jan 26 16:42:16 UTC 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100126/77eda666/attachment.html 


More information about the development mailing list