Hi!
This seems to be an easy one but can't find the answer.
Where can I customize the "Access denied You are not authorized to access this page." text?

Thanks!

Comments

=-=

a google search using keywords site: api.drupal.org access denied reveals that the text you seek is from the following function: http://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_a...

which means you can use http://drupal.org/project/stringoverrides to alter the text else you can create your own error pages and set them in admin/config/system/site-information

You can also create a node

You can also create a node with the text you want for your "Access denied" page. After saving look at the path for the node.

Now visit Configuration >> Site Information

Under "Error pages" set the path for "Default 403 (access denied) page" to the path of the node you just created.

Content access module

Sorry! Should have specified I was talking about Content access module. When you try to access a node that is only for access granted roles. String override seems a good way to do it but will it work if i put a link in it?

=-=

If constructed the right way yes. you will have to look at other t() strings and that include links for proper syntax.

Though, you could still use custom error pages with content access module. Create an error content type?