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
2350fda4
Commit
2350fda4
authored
May 13, 2008
by
Dries
Browse files
- Fixed broken URLs.
parent
00310863
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/content_types.inc
View file @
2350fda4
...
...
@@ -20,16 +20,16 @@ function node_overview_types() {
if
(
node_hook
(
$type
,
'form'
))
{
$type_url_str
=
str_replace
(
'_'
,
'-'
,
$type
->
type
);
$row
=
array
(
l
(
$name
,
'admin/
content
/node-type/'
.
$type_url_str
),
l
(
$name
,
'admin/
build
/node-type/'
.
$type_url_str
),
check_plain
(
$type
->
type
),
filter_xss_admin
(
$type
->
description
),
);
// Set the edit column.
$row
[]
=
array
(
'data'
=>
l
(
t
(
'edit'
),
'admin/
content
/node-type/'
.
$type_url_str
));
$row
[]
=
array
(
'data'
=>
l
(
t
(
'edit'
),
'admin/
build
/node-type/'
.
$type_url_str
));
// Set the delete column.
if
(
$type
->
custom
)
{
$row
[]
=
array
(
'data'
=>
l
(
t
(
'delete'
),
'admin/
content
/node-type/'
.
$type_url_str
.
'/delete'
));
$row
[]
=
array
(
'data'
=>
l
(
t
(
'delete'
),
'admin/
build
/node-type/'
.
$type_url_str
.
'/delete'
));
}
else
{
$row
[]
=
array
(
'data'
=>
''
);
...
...
@@ -280,7 +280,7 @@ function node_type_form_submit($form, &$form_state) {
node_type_reset
(
$type
);
}
elseif
(
$op
==
t
(
'Delete content type'
))
{
$form_state
[
'redirect'
]
=
'admin/
content
/node-type/'
.
str_replace
(
'_'
,
'-'
,
$type
->
old_type
)
.
'/delete'
;
$form_state
[
'redirect'
]
=
'admin/
build
/node-type/'
.
str_replace
(
'_'
,
'-'
,
$type
->
old_type
)
.
'/delete'
;
return
;
}
...
...
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