1.16.x common.inc backdrop_access_denied()
1.12.x common.inc backdrop_access_denied()
1.14.x common.inc backdrop_access_denied()
1.15.x common.inc backdrop_access_denied()
1.10.x common.inc backdrop_access_denied()
1.11.x common.inc backdrop_access_denied()
1.13.x common.inc backdrop_access_denied()
1.8.x common.inc backdrop_access_denied()
1.9.x common.inc backdrop_access_denied()

Delivers an "access denied" error to the browser.

Page callback functions wanting to report an "access denied" message should return MENU_ACCESS_DENIED instead of calling backdrop_access_denied(). However, functions that are invoked in contexts where that return value might not bubble up to menu_execute_active_handler() should call backdrop_access_denied().

Related topics

File

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

Code

function backdrop_access_denied() {
  backdrop_deliver_page(MENU_ACCESS_DENIED);
}