--- customerror.module	2009-03-19 16:07:59.000000000 +0000
+++ customerrorNew.module	2010-08-09 13:59:03.000000000 +0100
@@ -160,6 +160,8 @@ function customerror_page() {
       // Make sure that we sent an appropriate header
       customerror_header($code);
 
+      module_invoke_all('customerror_pre_render', $code);
+
       drupal_set_title(variable_get('customerror_'. $code .'_title', _customerror_fetch_error($code)));
       $output = theme('customerror', $code, variable_get('customerror_' . $code, _customerror_fetch_error($code)));
       $output = (variable_get('customerror_' . $code . '_php', FALSE)) ? drupal_eval($output) : $output;
