function patterns_set_error_handler in Patterns 7.2
Same name and namespace in other branches
- 6.2 patterns.module \patterns_set_error_handler()
- 6 patterns.module \patterns_set_error_handler()
- 7 includes/error.inc \patterns_set_error_handler()
Sets the custom Patterns error handler.
1 call to patterns_set_error_handler()
- patterns_implement_action in includes/
core/ common.inc - Setup and run an action.
File
- includes/
error.inc, line 10 - Error handling.
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
// occurred during the pattern execution.
@trigger_error('patterns_error');
}