| 5 common.inc | drupal_access_denied() |
| 6 common.inc | drupal_access_denied() |
| 7 common.inc | drupal_access_denied() |
| 8 common.inc | drupal_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 drupal_access_denied(). However, functions that are invoked in contexts where that return value might not bubble up to menu_execute_active_handler() should call drupal_access_denied().
Related topics
File
- includes/
common.inc, line 726 - Common functions that many Drupal modules will need to reference.
Code
<?php
function drupal_access_denied() {
drupal_deliver_page(MENU_ACCESS_DENIED);
}
?>Login or register to post comments