- Patch #421838 by jhodgdon, mradcliffe, jbrown: admin/reports/search dependent on dblog module.

merge-requests/26/head
Dries Buytaert 2010-06-29 00:39:16 +00:00
parent 87f1bf455d
commit d18daf82a7
2 changed files with 12 additions and 9 deletions

View File

@ -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;
}

View File

@ -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