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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupalexio’s picture

An empty string should be returned instead of NULL.

func0der’s picture

Status: Needs review » Reviewed & tested by the community

Work's great :)
Thanks, drupalexio.

NWOM’s picture

Status: Reviewed & tested by the community » Needs work

After applying the patch, a few notices are shown:

Notice: Undefined variable: message in r4032login_redirect() (line 194 of /var/aegir/platforms/panopoly-7.x-1.35/sites/{SITE}/modules/r4032login/r4032login.module).
Notice: Undefined variable: message_type in r4032login_redirect() (line 194 of /var/aegir/platforms/panopoly-7.x-1.35/sites/{SITE}/modules/r4032login/r4032login.module).

Uploading a new patch here in a second.

NWOM’s picture

Here is the new patch that should fix the notices. Please review.

NWOM’s picture

Once more, without the white space issue.

NWOM’s picture

I seemed to have missed another place where the notices can occur.

NWOM’s picture

Status: Needs work » Needs review
NWOM’s picture

apaderno’s picture

Issue tags: -disable form, -disable access denied message