Commit 9b79db09 authored by webchick's avatar webchick
Browse files

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) { ...@@ -571,8 +571,8 @@ function hook_node_load($nodes, $types) {
* Blindly returning FALSE will break other node access modules. * Blindly returning FALSE will break other node access modules.
* *
* @param object|string $node * @param object|string $node
* The node on which the operation is to be performed, or a string value * Either a node object or a (machine-readable) content type on which to
* representing the type of node. * perform the access check.
* @param string $op * @param string $op
* The operation to be performed. Possible values: * The operation to be performed. Possible values:
* - "create" * - "create"
...@@ -580,8 +580,7 @@ function hook_node_load($nodes, $types) { ...@@ -580,8 +580,7 @@ function hook_node_load($nodes, $types) {
* - "update" * - "update"
* - "view" * - "view"
* @param object $account * @param object $account
* A user object representing the user for whom the operation is to be * A user object for which the access check operation is to be performed.
* performed.
* *
* @return integer * @return integer
* NODE_ACCESS_ALLOW if the operation is to be allowed; * 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