From 774710328b85c3d9be21846a53bcce674861d941 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 22 Oct 2009 00:47:09 +0000 Subject: - Patch #569512 by Amitaibu: fixed un-existing function name in hook_node_access() documentation. --- modules/node/node.api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node/node.api.php') 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 -- cgit v1.2.3