function patterns_error_last in Patterns 7
Same name and namespace in other branches
- 7.2 includes/error.inc \patterns_error_last()
Returns or sets the last error.
2 calls to patterns_error_last()
- patterns_error_get_last in includes/
error.inc - Check and report PHP errors during patterns execution.
- patterns_error_handler in includes/
error.inc - Custom Patterns error handler.
File
- includes/
error.inc, line 131 - Error handling.
Code
function patterns_error_last($error = NULL) {
static $last_error = array();
if (isset($error)) {
$last_error = $error;
}
return $last_error;
}