From d18daf82a7c349288b700bec91073c7494fe8cc3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 29 Jun 2010 00:39:16 +0000 Subject: [PATCH] - Patch #421838 by jhodgdon, mradcliffe, jbrown: admin/reports/search dependent on dblog module. --- modules/dblog/dblog.module | 12 ++++++++++++ modules/search/search.module | 9 --------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module index d27507d2412..7e59501ed31 100644 --- a/modules/dblog/dblog.module +++ b/modules/dblog/dblog.module @@ -70,6 +70,18 @@ function dblog_menu() { 'type' => MENU_CALLBACK, 'file' => 'dblog.admin.inc', ); + + if (module_exists('search')) { + $items['admin/reports/search'] = array( + 'title' => 'Top search phrases', + 'description' => 'View most popular search phrases.', + 'page callback' => 'dblog_top', + 'page arguments' => array('search'), + 'access arguments' => array('access site reports'), + 'file' => 'dblog.admin.inc', + ); + } + return $items; } diff --git a/modules/search/search.module b/modules/search/search.module index c7dee7e4e6b..95fe5ef109f 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -188,15 +188,6 @@ function search_menu() { 'type' => MENU_CALLBACK, 'file' => 'search.admin.inc', ); - $items['admin/reports/search'] = array( - 'title' => 'Top search phrases', - 'description' => 'View most popular search phrases.', - 'page callback' => 'dblog_top', - 'page arguments' => array('search'), - 'access arguments' => array('access site reports'), - 'file path' => drupal_get_path('module', 'dblog'), - 'file' => 'dblog.admin.inc', - ); // Add paths for searching. We add each module search path twice: once without // and once with %menu_tail appended. The reason for this is that we want to