1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* The ldap_help watchdog is just a filtered watchdog summary.
|
6
|
*
|
7
|
*/
|
8
|
function ldap_help_watchdog() {
|
9
|
|
10
|
$path = drupal_get_path("module", "ldap_help");
|
11
|
$_content = "";
|
12
|
if (module_exists('dblog')) {
|
13
|
include_once(drupal_get_path('module', 'dblog') . '/dblog.admin.inc');
|
14
|
$_SESSION['dblog_overview_filter']['type'] = Array('ldap' => 'ldap');
|
15
|
$_content .= "<h3>" . t('LDAP Watchdog Errors and Notifications') . "</h3>";
|
16
|
$overview = dblog_overview();
|
17
|
$_content .= render($overview);
|
18
|
|
19
|
$_content .= l(t('...more watchdog'), 'admin/reports/dblog');
|
20
|
}
|
21
|
else {
|
22
|
$_content .= "<h3>" . t('LDAP Help Watchdog Errors and Notifications') . "</h3>";
|
23
|
$_content .= 'This feature requires <code>Database logging</code> module to be turned on. ';
|
24
|
$_content .= l(t('Module enable page'), 'admin/build/modules');
|
25
|
}
|
26
|
|
27
|
|
28
|
return $_content;
|
29
|
}
|