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

Diff of /contributions/modules/logging_alerts/emaillog/emaillog.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:28:59 2009 UTC revision 1.1.2.1, Thu Jul 23 16:28:59 2009 UTC
# Line 0  Line 1 
1    <?php
2    // $Id$
3    
4    /**
5     * @file
6     * Administrative page callbacks for the emaillog module.
7     */
8    
9    /**
10     * Administration settings form.
11     *
12     * @see system_settings_form()
13     */
14    function emaillog_admin_settings() {
15      $form['emaillog'] = array(
16        '#type' => 'fieldset',
17        '#title' => t('Email addresses for each severity level.'),
18        '#description' => t('Enter an email address for each severity level. For example, you may want to get emergency and critical levels to your pager or mobile phone, while notice level messages can go to a regular email. If you leave the email address blank for a severity level, no email messages will be sent for that severity level.'),
19      );
20      foreach (watchdog_severity_levels() as $severity => $description) {
21        $description = drupal_ucfirst($description);
22        $key = 'emaillog_' . $severity;
23        $form['emaillog'][$key] = array(
24          '#type' => 'textfield',
25          '#title' => t('Email address for severity @description', array('@description' => $description)),
26          '#default_value' => variable_get($key, ''),
27          '#description' => t('The email address to send log entries of severity @description to.', array('@description' => $description)),
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