Skip to content

Instantly share code, notes, and snippets.

@hubgit
Created April 5, 2009 15:04
Show Gist options
  • Save hubgit/90453 to your computer and use it in GitHub Desktop.
Save hubgit/90453 to your computer and use it in GitHub Desktop.
Custom 403 page for Drupal 6 that provides a link to sign in
// Enable PHP filter module.
// Create a new node with this content.
// In Admin > Site Configuration > Error Reporting, set the default 403 page to this node.
Access to this page is restricted, please <?php print l(t('sign in'), 'user/login', array('query' => 'destination='. drupal_urlencode($_REQUEST['q']), 'absolute' => TRUE)); ?>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment