summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-05 07:56:14 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-05 07:56:14 +0000
commit9874567891b396f572d1d958e586f11341519688 (patch)
tree3cccc61e88157f3553a0b19b40776c8ec887e7ec /modules
parent5e2cd1a9fe917565cba950651cc243e5166fbc7c (diff)
downloadbrdo-9874567891b396f572d1d958e586f11341519688.tar.gz
brdo-9874567891b396f572d1d958e586f11341519688.tar.bz2
#842962 by jhodgdon, chx: Fixed hook_menu() and drupal_deliver_page() need to warn about access checks in documentation.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.api.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index 8f72133d9..fea9a9746 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -888,7 +888,9 @@ function hook_page_build(&$page) {
* - "delivery callback": The function to call to package the result of the
* page callback function and send it to the browser. Defaults to
* drupal_deliver_html_page() unless a value is inherited from a parent menu
- * item.
+ * item. Note that this function is called even if the access checks fail,
+ * so any custom delivery callback function should take that into account.
+ * See drupal_deliver_html_page() for an example.
* - "access callback": A function returning a boolean value that determines
* whether the user has access rights to this menu item. Defaults to
* user_access() unless a value is inherited from a parent menu item.