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
15f94a42
Commit
15f94a42
authored
Apr 11, 2013
by
alexpott
Browse files
Issue
#1961940
by xjm: Make 'Manage fields' the default dropbutton operation for content types.
parent
6543a5ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/node/content_types.inc
View file @
15f94a42
...
...
@@ -24,27 +24,27 @@ function node_overview_types() {
$type
=
$types
[
$key
];
if
(
node_hook
(
$type
->
type
,
'form'
))
{
$row
=
array
(
theme
(
'node_admin_overview'
,
array
(
'name'
=>
$name
,
'type'
=>
$type
)));
$links
[
'edit'
]
=
array
(
'title'
=>
t
(
'Edit'
),
'href'
=>
'admin/structure/types/manage/'
.
$type
->
type
,
'weight'
=>
0
,
);
if
(
$field_ui
&&
user_access
(
'administer node fields'
))
{
$links
[
'fields'
]
=
array
(
'title'
=>
t
(
'Manage fields'
),
'href'
=>
'admin/structure/types/manage/'
.
$type
->
type
.
'/fields'
,
'weight'
=>
5
,
'weight'
=>
0
,
);
}
if
(
$field_ui
&&
user_access
(
'administer node display'
))
{
$links
[
'display'
]
=
array
(
'title'
=>
t
(
'Manage display'
),
'href'
=>
'admin/structure/types/manage/'
.
$type
->
type
.
'/display'
,
'weight'
=>
10
,
'weight'
=>
5
,
);
}
$links
[
'edit'
]
=
array
(
'title'
=>
t
(
'Edit'
),
'href'
=>
'admin/structure/types/manage/'
.
$type
->
type
,
'weight'
=>
10
,
);
if
(
$type
->
custom
)
{
$links
[
'delete'
]
=
array
(
'title'
=>
t
(
'Delete'
),
...
...
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