Issue #789484 by Lars Toomre, pillarsdotnet, michaellenahan, sven.lauer, Mac_Weber: Fixed Confusing documentation for argument in hook_access()/hook_node_access().
parent
3950b0adba
commit
00c31f849a
|
@ -580,7 +580,7 @@ function hook_node_load($nodes, $types) {
|
||||||
* - "update"
|
* - "update"
|
||||||
* - "view"
|
* - "view"
|
||||||
* @param object $account
|
* @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
|
* @return integer
|
||||||
* NODE_ACCESS_ALLOW if the operation is to be allowed;
|
* NODE_ACCESS_ALLOW if the operation is to be allowed;
|
||||||
|
@ -858,9 +858,9 @@ function hook_node_view_alter(&$build) {
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* An array of information defining the module's node types. The array
|
* 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
|
* contains a sub-array for each node type, with the the machine name of a
|
||||||
* name as the key. Each sub-array has up to 10 attributes. Possible
|
* content type as the key. Each sub-array has up to 10 attributes.
|
||||||
* attributes:
|
* Possible attributes:
|
||||||
* - "name": the human-readable name of the node type. Required.
|
* - "name": the human-readable name of the node type. Required.
|
||||||
* - "base": the base string used to construct callbacks corresponding to
|
* - "base": the base string used to construct callbacks corresponding to
|
||||||
* this node type.
|
* this node type.
|
||||||
|
@ -878,9 +878,9 @@ function hook_node_view_alter(&$build) {
|
||||||
* machine name of this type. FALSE = changeable (not locked),
|
* machine name of this type. FALSE = changeable (not locked),
|
||||||
* TRUE = unchangeable (locked). Optional (defaults to TRUE).
|
* TRUE = unchangeable (locked). Optional (defaults to TRUE).
|
||||||
*
|
*
|
||||||
* The machine-readable name of a node type should contain only letters,
|
* The machine name of a node type should contain only letters, numbers, and
|
||||||
* numbers, and underscores. Underscores will be converted into hyphens for the
|
* underscores. Underscores will be converted into hyphens for the purpose of
|
||||||
* purpose of constructing URLs.
|
* constructing URLs.
|
||||||
*
|
*
|
||||||
* All attributes of a node type that are defined through this hook (except for
|
* 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
|
* 'locked') can be edited by a site administrator. This includes the
|
||||||
|
|
Loading…
Reference in New Issue