Projet

Général

Profil

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

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

1
<?php
2

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

    
8
/**
9
 *
10
 */
11
function ldap_help_watchdog() {
12

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

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

    
30
  return $_content;
31
}