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.

4 calls to message_access()
blogapi_blogger_edit_post in modules/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_new_post in modules/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
blogap_mti_publish_post in modules/blogapi.module
Blogging API callback. Publishes the given node
drupal_access_denied in includes/common.inc
Generates a 403 error if the request is not allowed.

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.');
}