- Patch #337909 by chillin411: hook_menu() 'access callback' docs should mention boolean values work too and minor doxygen correction.

merge-requests/26/head
Dries Buytaert 2010-10-27 19:11:53 +00:00
parent 028fe64eae
commit a6cb5bbf85
1 changed files with 6 additions and 4 deletions

View File

@ -1002,12 +1002,14 @@ function hook_page_build(&$page) {
* 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.
* - "access callback": A function returning TRUE if the user has access
* rights to this menu item, and FALSE if not. It can also be a boolean
* constant instead of a function, and you can also use numeric values
* (will be cast to boolean). Defaults to user_access() unless a value is
* inherited from a parent menu item.
* - "access arguments": An array of arguments to pass to the access callback
* function, with path component substitution as described above.
* - "theme callback": Optional. A function returning the machine-readable
* - "theme callback": (optional) A function returning the machine-readable
* name of the default theme that will be used to render the page. If this
* function is provided, it is expected to return a currently-active theme
* on the site (otherwise, the main site theme will be used instead). If no