Dear Drupal experts,

My client wishes to change the "Access denied" text that displays when a user tries to access a protected page without first logging in.

e.g. http://www.steveparish.com.au/admin

The green text says: "Access denied. You may need to login below or register to access this page."

Can you please advise me of where/how I can change this?

Kind regards
James

Comments

p6’s picture

sudeepg’s picture

Prefer string overrides module - http://drupal.org/project/stringoverrides. For the complex login settings, logintoboggan (http://drupal.org/project/logintoboggan)

Sudeep Goyal,
Ebizon NetInfo Pvt. Ltd.
Delhi, India
http://ebizontek.com
Ph: +91120 4546843
Email: info@ebizontek.com
skype id : am.ebizon

arh1’s picture

you can easily handle this with core, w/o adding another module.

first, create a page node with the wording the way you want it. then, point Drupal to that node for 403 errors at /admin/settings/error-reporting .

sudeepg’s picture

But, then you are taking the user to a new page with a simple message. Actually, in most scenarios you would want to show the modified "access denied" message with a login form.

Sudeep Goyal,
Ebizon NetInfo Pvt. Ltd.
Delhi, India
http://ebizontek.com
Ph: +91120 4546843
Email: info@ebizontek.com
skype id : sudeep.goyal

mcsolas’s picture

>Actually, in most scenarios you would want to show the modified "access denied" message with a login form.

This is what I am looking to do.. any suggestions?

johnbarclay’s picture

ebizondrupalservices is correct. logintoboggan module will take care of showing the logon page on access denied pages.