You are here

function patterns_set_error_handler in Patterns 6

Same name and namespace in other branches
  1. 6.2 patterns.module \patterns_set_error_handler()
  2. 7.2 includes/error.inc \patterns_set_error_handler()
  3. 7 includes/error.inc \patterns_set_error_handler()
1 call to patterns_set_error_handler()
patterns_implement_action in ./patterns.module
Setup and run an action

File

./patterns.module, line 2815
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

function patterns_set_error_handler() {

  // set custom error handler
  set_error_handler('patterns_error_handler');

  // trigger dummy error
  // this will be used as a refrence to determine if any real error
  // occured during the pattern execution
  @trigger_error('patterns_error');
}