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

Diff of /contributions/modules/luceneapi/luceneapi.module

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

revision 1.39, Wed Apr 1 01:55:42 2009 UTC revision 1.40, Wed Apr 1 02:02:14 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: luceneapi.module,v 1.38 2009/04/01 01:50:58 cpliakas Exp $  // $Id: luceneapi.module,v 1.39 2009/04/01 01:55:42 cpliakas Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 874  function luceneapi_setting_get($setting, Line 874  function luceneapi_setting_get($setting,
874  }  }
875    
876  /**  /**
877   * This function should be called to handle application level errors that should   * Logs errors via watchdog() then displays dependant on whether the user has
878   * not be relayed to the site's users.  Using this function enables detailed   * "view luceneapi errors" access.  Exceptions other than LuceneAPI_Exception
879   * messages to be displayed in a development environment while hiding sensitive   * are passed to t().  If we are in Drush, drush_error() is called instead
880   * information on production environments.  It also sets the global luceneapi   * of drupal_set_error().
  * error flag so we can get the state of the application.  In addition, this  
  * function is Drush aware and calls drush_error() when appropriate.  
881   *   *
882   * @param $err   * @param $err
883   *   A string or an Exception class containing the error message.  The message   *   A string or an Exception class containing the error message.
  *   will be passed to t() if $variables is an array or $err is not an instance  
  *   of LuceneAPI_Exception .  If $err is an instance of LuceneAPI_Exception or  
  *   $variables is NULL, the message is assumed to have already been translated  
  *   and will not be passed to t().  
884   * @param $variables   * @param $variables
885   *   An array of variables to replace in the message on display, NULL if message   *   An array of variables to replace in the message on display, NULL if message
886   *   is already translated or not possible to translate.  This is meaningless   *   is already translated or not possible to translate.  The parameter is
887   *   if $err is an exception.   *   meaningless if $err is an Exception object.
888   * @param $type   * @param $type
889   *   A string containing the type parameter passed to watchdog(), defaults to   *   A string containing the type parameter passed to watchdog(), defaults to
890   *   luceneapi.   *   luceneapi.

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.2