message_access

Definition

message_access()
includes/common.inc, line 469

Description

Return a string with an "access denied" message.

Always consider whether to use drupal_access_denied() instead to return a proper (and customizable) 403 error.

Code

<?php
function message_access() {
  return t('You are not authorized to access this page.');
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.