Commit d18daf82 authored by Dries's avatar Dries

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

parent 87f1bf45
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment