summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2011-10-19 23:56:11 -0700
committerwebchick2011-10-19 23:56:11 -0700
commit00c31f849ab7a2363950a0d435c5bed255ca6f5d (patch)
tree220f40cbbb23e5083344a18304e543bdb597ea58
parent3950b0adba3d2b582d744e3db1c8ed646e6093ed (diff)
Issue #789484 by Lars Toomre, pillarsdotnet, michaellenahan, sven.lauer, Mac_Weber: Fixed Confusing documentation for argument in hook_access()/hook_node_access().
-rw-r--r--modules/node/node.api.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php
index c798e73..cab476e 100644
--- a/modules/node/node.api.php
+++ b/modules/node/node.api.php
@@ -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