You are here

function patterns_export_error_handler in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_export/api.inc \patterns_export_error_handler()

Halts script execution in case of error

1 string reference to 'patterns_export_error_handler'
patterns_export_actions_from_form in patterns_export/api.inc
Constructs patterns actions based on the current state of a form

File

patterns_export/api.inc, line 77
Export the components configuration to a Pattern file.

Code

function patterns_export_error_handler($errno, $errstr) {
  variable_set('macro_enabled', FALSE);
  variable_set('macro_submissions', array());
  variable_set('patterns_extract_actions', FALSE);
  restore_error_handler();

  // Normal error handler should take over from here.
  return FALSE;
}