message_access

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.

6 calls to message_access()

File

includes/common.inc, line 469
Common functions that many Drupal modules will need to reference.

Code

function message_access() {
  return t('You are not authorized to access this page.');
}
Login or register to post comments