Issue #789484 by Lars Toomre, pillarsdotnet, michaellenahan, sven.lauer, Mac_Weber: Fixed Confusing documentation for argument in hook_access()/hook_node_access().

8.0.x
webchick 2011-10-19 23:56:11 -07:00
parent 3950b0adba
commit 00c31f849a
1 changed files with 7 additions and 7 deletions

View File

@ -580,7 +580,7 @@ function hook_node_load($nodes, $types) {
* - "update"
* - "view"
* @param object $account
* A user object for which the access check operation is to be performed.
* The user object to perform the access check operation on.
*
* @return integer
* NODE_ACCESS_ALLOW if the operation is to be allowed;
@ -858,9 +858,9 @@ function hook_node_view_alter(&$build) {
*
* @return
* An array of information defining the module's node types. The array
* contains a sub-array for each node type, with the machine-readable type
* name as the key. Each sub-array has up to 10 attributes. Possible
* attributes:
* contains a sub-array for each node type, with the the machine name of a
* content type as the key. Each sub-array has up to 10 attributes.
* Possible attributes:
* - "name": the human-readable name of the node type. Required.
* - "base": the base string used to construct callbacks corresponding to
* this node type.
@ -878,9 +878,9 @@ function hook_node_view_alter(&$build) {
* machine name of this type. FALSE = changeable (not locked),
* TRUE = unchangeable (locked). Optional (defaults to TRUE).
*
* The machine-readable name of a node type should contain only letters,
* numbers, and underscores. Underscores will be converted into hyphens for the
* purpose of constructing URLs.
* The machine name of a node type should contain only letters, numbers, and
* underscores. Underscores will be converted into hyphens for the purpose of
* constructing URLs.
*
* All attributes of a node type that are defined through this hook (except for
* 'locked') can be edited by a site administrator. This includes the