Skip to content

Instantly share code, notes, and snippets.

@redterror
Created February 20, 2012 18:41
Show Gist options
  • Save redterror/1870620 to your computer and use it in GitHub Desktop.
Save redterror/1870620 to your computer and use it in GitHub Desktop.
function error_displayable($error = NULL) {
- $error_level = variable_get('error_level', ERROR_REPORTING_DISPLAY_ALL);
+ //$error_level = variable_get('error_level', ERROR_REPORTING_DISPLAY_ALL);
+ // Set the default to HIDE, which is what we want. Why this doesn't work from the admin interface isn't clear.
+ $error_level = variable_get('error_level', ERROR_REPORTING_HIDE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment