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.
Heyho,
I wanted to disable the redirect for some pages. I added them in the backend and found out, that the site then shows an user login form and also the access denied message.
I wanted it to be just a simple access denied page - no messages, no form.
So I added two additional options to make this possible and changed the code a little to make it work.
The patch is attached and pretty simple. Would really appreciate a merge :)
Thanks :)
func0der
Comments
Comment #1
drupalexio CreditAttribution: drupalexio commentedAn empty string should be returned instead of NULL.
Comment #2
func0der CreditAttribution: func0der commentedWork's great :)
Thanks, drupalexio.
Comment #3
NWOM CreditAttribution: NWOM commentedAfter applying the patch, a few notices are shown:
Uploading a new patch here in a second.
Comment #4
NWOM CreditAttribution: NWOM commentedHere is the new patch that should fix the notices. Please review.
Comment #5
NWOM CreditAttribution: NWOM commentedOnce more, without the white space issue.
Comment #6
NWOM CreditAttribution: NWOM commentedI seemed to have missed another place where the notices can occur.
Comment #7
NWOM CreditAttribution: NWOM commentedComment #8
NWOM CreditAttribution: NWOM commentedComment #9
apaderno