From b9f1a8e27ca1d303f550ed35965912ab2c7f0cef Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Mon, 24 Feb 2014 14:10:50 -0800 Subject: [PATCH] Issue #2188097 by rcaracaus, olli: 'Comment forms' links to admin/content/comment. --- core/modules/comment/comment.module | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 837609e6ec67..0cbe24c63ee8 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -203,12 +203,18 @@ function comment_menu() { * Implements hook_menu_link_defaults(). */ function comment_menu_link_defaults() { - $links['comment.admin.content'] = array( - 'link_title' => 'Comment forms', + $links['comment.admin.content.comment'] = array( + 'link_title' => 'Comments', 'route_name' => 'comment.admin', - 'parent' => 'system.admin.structure', + 'parent' => \Drupal::moduleHandler()->moduleExists('node') ? 'node.admin.content' : 'system.admin', 'description' => 'List and edit site comments and the comment approval queue.', ); + $links['comment.admin.structure.comments'] = array( + 'link_title' => 'Comment forms', + 'route_name' => 'comment.bundle_list', + 'parent' => 'system.admin.structure', + 'description' => 'Manage fields and displays settings for comment forms.', + ); return $links; } -- GitLab