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
890356a0
Commit
890356a0
authored
Feb 21, 2006
by
Dries
Browse files
- Patch
#50219
by pz: removed some redundant code.
parent
3698f857
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
890356a0
...
@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
...
@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function
node_add
(
$type
)
{
function
node_add
(
$type
)
{
global
$user
;
global
$user
;
$edit
=
isset
(
$_POST
[
'edit'
])
?
$_POST
[
'edit'
]
:
''
;
// If a node type has been specified, validate its existence.
// If a node type has been specified, validate its existence.
if
(
array_key_exists
(
$type
,
node_get_types
())
&&
node_access
(
'create'
,
$type
))
{
if
(
array_key_exists
(
$type
,
node_get_types
())
&&
node_access
(
'create'
,
$type
))
{
// Initialize settings:
// Initialize settings:
...
...
modules/node/node.module
View file @
890356a0
...
@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
...
@@ -1743,8 +1743,6 @@ function theme_node_form($form) {
function
node_add
(
$type
)
{
function
node_add
(
$type
)
{
global
$user
;
global
$user
;
$edit
=
isset
(
$_POST
[
'edit'
])
?
$_POST
[
'edit'
]
:
''
;
// If a node type has been specified, validate its existence.
// If a node type has been specified, validate its existence.
if
(
array_key_exists
(
$type
,
node_get_types
())
&&
node_access
(
'create'
,
$type
))
{
if
(
array_key_exists
(
$type
,
node_get_types
())
&&
node_access
(
'create'
,
$type
))
{
// Initialize settings:
// Initialize settings:
...
...
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