You are here

function patterns_error_set_last in Patterns 6

Same name and namespace in other branches
  1. 6.2 patterns.module \patterns_error_set_last()
2 calls to patterns_error_set_last()
patterns_error_get_last in ./patterns.module
Check and report PHP errors during patterns execution
patterns_error_handler in ./patterns.module
Custom error handler used only during patterns execution in order to catch and properly handle PHP errors. Based on drupal_error_handler().

File

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

Code

function patterns_error_set_last($error = NULL) {
  static $last_error = array();
  if (isset($error)) {
    $last_error = $error;
  }
  return $last_error;
}