Commit 9b79db09 authored by webchick's avatar webchick

Issue #789484 by Lars Toomre, michaellenahan, sven.lauer: Fixed Confusing...

Issue #789484 by Lars Toomre, michaellenahan, sven.lauer: Fixed Confusing documentation for  argument in hook_access()/hook_node_access().
parent 85a76b66
......@@ -571,8 +571,8 @@ function hook_node_load($nodes, $types) {
* Blindly returning FALSE will break other node access modules.
*
* @param object|string $node
* The node on which the operation is to be performed, or a string value
* representing the type of node.
* Either a node object or a (machine-readable) content type on which to
* perform the access check.
* @param string $op
* The operation to be performed. Possible values:
* - "create"
......@@ -580,8 +580,7 @@ function hook_node_load($nodes, $types) {
* - "update"
* - "view"
* @param object $account
* A user object representing the user for whom the operation is to be
* performed.
* A user object for which the access check operation is to be performed.
*
* @return integer
* NODE_ACCESS_ALLOW if the operation is to be allowed;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment