Skip to content
Snippets Groups Projects
Commit 15f94a42 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1961940 by xjm: Make 'Manage fields' the default dropbutton operation for content types.

parent 6543a5ba
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment