Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
77471032
Commit
77471032
authored
Oct 22, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#569512
by Amitaibu: fixed un-existing function name in hook_node_access() documentation.
parent
80432a6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/node/node.api.php
modules/node/node.api.php
+2
-2
No files found.
modules/node/node.api.php
View file @
77471032
...
...
@@ -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
_
perm
ission
s_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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment