Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is no need to call exit, if anything, it should call drupal_exit(), calling exit; prevents things like writing the user session back.
Comment | File | Size | Author |
---|---|---|---|
#1 | vud-exit-2315923-1.patch | 510 bytes | Berdir |
Comments
Comment #1
BerdirAnd here's the patch.
Comment #2
marvil07 CreditAttribution: marvil07 commented@Berdir thanks for pointing that out, yes exit should not be called.
After some research, it seem like the right way to do it is to return a renderable array from those menu callbacks.
I'll be adding that soon.
Comment #4
marvil07 CreditAttribution: marvil07 commentedComment #5
marvil07 CreditAttribution: marvil07 commented