[development] How to trigger access denied page from hook_nodeapi
matt at ninjitsuweb.com
Tue Jan 26 20:18:06 UTC 2010
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.
On Tue, Jan 26, 2010 at 8:42 AM, Ernst Plüss <ernst.pluess at gmail.com> wrote:
> Hi Drupal friends
> I'd like to trigger a access denied page from my hook_nodeapi function up on
> I already tried:
> This gives me a strange result: two access denied pages after each other.
> Thanks for giving me a hand!
> Best Regards
More information about the development