diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module index 3866097..320d6aa 100644 --- a/core/modules/forum/forum.module +++ b/core/modules/forum/forum.module @@ -136,6 +136,10 @@ function forum_menu() { 'title' => 'Edit forum', 'route_name' => 'forum_edit_forum', ); + $items['admin/structure/forum/delete/forum/%taxonomy_term'] = array( + 'title' => 'Delete forum', + 'route_name' => 'forum_delete', + ); return $items; } @@ -198,18 +202,6 @@ function forum_menu_local_tasks(&$data, $router_item, $root_path) { } /** - * Implements hook_menu_local_tasks_alter(). - * - * Remove the 'Add Forum' and 'Add container' local tasks on the delete form. - */ -function forum_menu_local_tasks_alter(&$data, $router_item, $root_path) { - if ($root_path == 'admin/structure/forum' && !empty($router_item['map'][3]) && - $router_item['map'][3] == 'delete') { - $data = array(); - } -} - -/** * Implements hook_entity_info(). */ function forum_entity_info(&$info) {