Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e42209f7
Commit
e42209f7
authored
Nov 02, 2009
by
webchick
Browse files
*** empty log message ***
parent
2740c8d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.pages.inc
View file @
e42209f7
...
...
@@ -60,7 +60,7 @@ function node_add($type) {
$types
=
node_type_get_types
();
$type
=
isset
(
$type
)
?
str_replace
(
'-'
,
'_'
,
$type
)
:
NULL
;
// If a node type has been specified, validate its existence.
if
(
isset
(
$types
[
$type
])
&&
node_access
(
'create'
,
$type
)
)
{
if
(
isset
(
$types
[
$type
]))
{
// Initialize settings:
$node
=
(
object
)
array
(
'uid'
=>
$user
->
uid
,
'name'
=>
(
isset
(
$user
->
name
)
?
$user
->
name
:
''
),
'type'
=>
$type
,
'language'
=>
''
);
...
...
Write
Preview
Supports
Markdown
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