diff --git a/core/modules/contact/contact.module b/core/modules/contact/contact.module index 2483d0f..9ea6965 100644 --- a/core/modules/contact/contact.module +++ b/core/modules/contact/contact.module @@ -61,7 +61,6 @@ function contact_menu() { 'title' => 'Contact form categories', 'description' => 'Create a system contact form and set up categories for the form to use.', 'route_name' => 'contact_category_list', - 'type' => MENU_LOCAL_TASK, ); $items['admin/structure/contact/add'] = array( 'title' => 'Add category', @@ -76,6 +75,7 @@ function contact_menu() { $items['admin/structure/contact/manage/%contact_category/edit'] = array( 'title' => 'Edit', 'type' => MENU_DEFAULT_LOCAL_TASK, + 'route_name' => 'contact_category_edit_tab', ); $items['admin/structure/contact/manage/%contact_category/delete'] = array( 'title' => 'Delete', diff --git a/core/modules/contact/contact.routing.yml b/core/modules/contact/contact.routing.yml index 996f61d..c5efe48 100644 --- a/core/modules/contact/contact.routing.yml +++ b/core/modules/contact/contact.routing.yml @@ -26,3 +26,10 @@ contact_category_edit: _entity_form: contact_category.default requirements: _permission: 'administer contact forms' + +contact_category_edit_tab: + pattern: '/admin/structure/contact/manage/{contact_category}/edit' + defaults: + _entity_form: contact_category.default + requirements: + _permission: 'administer contact forms'