From 07820cea4a3e4a795fb5718d68b85e5cb3135316 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Tue, 31 Mar 2015 10:52:26 +0530 Subject: [PATCH] MDL-49412 navigation: Remove redundant reports node Part of MDL-45774. --- lib/navigationlib.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 2e1872369de..4771a1da0da 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -4492,16 +4492,6 @@ class settings_navigation extends navigation_node { } } - // Add reports node. - $reporttab = $usersetting->add(get_string('activityreports')); - $reports = get_plugin_list_with_function('report', 'extend_navigation_user', 'lib.php'); - foreach ($reports as $reportfunction) { - $reportfunction($reporttab, $user, $course); - } - - // Check the number of nodes in the report node... if there are none remove the node. - $reporttab->trim_if_empty(); - // Login as ... if (!$user->deleted and !$currentuser && !\core\session\manager::is_loggedinas() && has_capability('moodle/user:loginas', $coursecontext) && !is_siteadmin($user->id)) { -- 2.36.1