/[drupal]/contributions/modules/logging_alerts/errorlog/errorlog.admin.inc
ViewVC logotype

Diff of /contributions/modules/logging_alerts/errorlog/errorlog.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Thu Jul 23 16:29:00 2009 UTC revision 1.1.2.1, Thu Jul 23 16:29:00 2009 UTC
# Line 0  Line 1 
1    <?php
2    // $Id$
3    
4    /**
5     * @file
6     * Administrative page callbacks for the errorlog module.
7     */
8    
9    /**
10     * Administration settings form.
11     *
12     * @see system_settings_form()
13     */
14    function errorlog_admin_settings() {
15      $form['errorlog'] = array(
16        '#type' => 'fieldset',
17        '#title' => t('Error logging for each severity level.'),
18        '#description' => t('Check each severity level you want to get logged to the error log.'),
19      );
20    
21      foreach (watchdog_severity_levels() as $severity => $description) {
22        $description = drupal_ucfirst($description);
23        $key = 'errorlog_' . $severity;
24        $form['errorlog'][$key] = array(
25          '#type'          => 'checkbox',
26          '#title'         => t('Severity: @description', array('@description' => $description)),
27          '#default_value' => variable_get($key, FALSE),
28        );
29      }
30    
31      return system_settings_form($form);
32    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2