Commit 00c31f84 authored by webchick's avatar webchick

Issue #789484 by Lars Toomre, pillarsdotnet, michaellenahan, sven.lauer,...

Issue #789484 by Lars Toomre, pillarsdotnet, michaellenahan, sven.lauer, Mac_Weber: Fixed Confusing documentation for  argument in hook_access()/hook_node_access().
parent 3950b0ad
......@@ -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
......
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