diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-22 00:47:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-22 00:47:09 +0000 |
commit | 774710328b85c3d9be21846a53bcce674861d941 (patch) | |
tree | b0e274d38fcbf9abe683b9b19664b00714d30740 /modules | |
parent | 80432a6a0017f189173eaf92f3d67393d804d949 (diff) | |
download | brdo-774710328b85c3d9be21846a53bcce674861d941.tar.gz brdo-774710328b85c3d9be21846a53bcce674861d941.tar.bz2 |
- Patch #569512 by Amitaibu: fixed un-existing function name in hook_node_access() documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php index 7e1491b53..abefd752a 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -379,7 +379,7 @@ function hook_node_load($nodes, $types) { function hook_node_access($node, $op, $account) { $type = is_string($node) ? $node : (is_array($node) ? $node['type'] : $node->type); - if (in_array($type, nodeperms_get_configured_types())) { + if (in_array($type, node_permissions_get_configured_types())) { if ($op == 'create' && user_access('create ' . $type . ' content', $account)) { return NODE_ACCESS_ALLOW; } @@ -576,7 +576,7 @@ function hook_node_build_alter($node, $build_mode) { * example, the blog module uses it to define a blog node-type named "Blog * entry." The name and attributes of each desired node type are specified in * an array returned by the hook. - * + * * Only module-provided node types should be defined through this hook. User- * provided (or 'custom') node types should be defined only in the 'node_type' * database table, and should be maintained by using the node_type_save() and |