/[drupal]/contributions/modules/civicrm_error/civicrm_error.module
ViewVC logotype

Diff of /contributions/modules/civicrm_error/civicrm_error.module

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

revision 1.1.2.1, Mon Jul 23 18:11:49 2007 UTC revision 1.1.2.2, Mon Jul 23 18:13:52 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id: civicrm_error.module,v 1.1 2007/07/20 15:44:34 dalin Exp $  // $Id: civicrm_error.module,v 1.1.2.1 2007/07/23 18:11:49 dalin Exp $
4    
5  /**  /**
6   *  Custom error function   *  Custom error function
# Line 48  function civicrm_error_handler() { Line 48  function civicrm_error_handler() {
48    // send email    // send email
49    $subject = 'CiviCRM error at '. $site;    $subject = 'CiviCRM error at '. $site;
50    $to = variable_get('civicrm_error_to', variable_get("site_mail", ini_get("sendmail_from")));    $to = variable_get('civicrm_error_to', variable_get("site_mail", ini_get("sendmail_from")));
   print_r($output);  
   die;  
51    drupal_mail('civicrm_error', $to, $subject, $output);    drupal_mail('civicrm_error', $to, $subject, $output);
52    
53  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.2