Projet

Général

Profil

Paste
Télécharger (883 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_help / ldap_help.watchdog.inc @ bc175c27

1
<?php
2

    
3
/**
4
 * @file
5
 * The ldap_help watchdog is just a filtered watchdog summary.
6
 *
7
 */
8

    
9
function ldap_help_watchdog() {
10

    
11
  $path = drupal_get_path("module", "ldap_help");
12
  $_content = "";
13
  if (module_exists('dblog')) {
14
    include_once(drupal_get_path('module', 'dblog') . '/dblog.admin.inc');
15
    $_SESSION['dblog_overview_filter']['type'] = Array('ldap' => 'ldap');
16
    $_content .= "<h3>" . t('LDAP Watchdog Errors and Notifications') . "</h3>";
17
    $overview = dblog_overview();
18
    $_content .= render($overview);
19

    
20
    $_content .= l(t('...more watchdog'), 'admin/reports/dblog');
21
  }
22
  else {
23
    $_content .= "<h3>" . t('LDAP Help Watchdog Errors and Notifications') . "</h3>";
24
    $_content .= 'This feature requires <code>Database logging</code> module to be turned on. ';
25
    $_content .= l(t('Module enable page'), 'admin/build/modules');
26
  }
27

    
28

    
29
  return $_content;
30
}