- Patch #421838 by jhodgdon, mradcliffe, jbrown: admin/reports/search dependent on dblog module.
parent
87f1bf455d
commit
d18daf82a7
|
@ -70,6 +70,18 @@ function dblog_menu() {
|
||||||
'type' => MENU_CALLBACK,
|
'type' => MENU_CALLBACK,
|
||||||
'file' => 'dblog.admin.inc',
|
'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;
|
return $items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -188,15 +188,6 @@ function search_menu() {
|
||||||
'type' => MENU_CALLBACK,
|
'type' => MENU_CALLBACK,
|
||||||
'file' => 'search.admin.inc',
|
'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
|
// 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
|
// and once with %menu_tail appended. The reason for this is that we want to
|
||||||
|
|
Loading…
Reference in New Issue