diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index af6e53c8a0305068122aa9f348de895a71a7515c..75f3dcbe3e3dad7cfe0b88af61b087bbda919602 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1217,26 +1217,9 @@ function system_error_reporting_settings() { '#description' => t('Specify where Drupal, PHP and SQL errors are logged. While it is recommended that a site running in a production environment write errors to the log only, in a development or testing environment it may be helpful to write errors both to the log and to the screen.') ); - $form['#validate'][] = 'system_error_reporting_settings_validate'; - return system_settings_form($form); } -/** - * Validate the submitted error reporting form. - */ -function system_error_reporting_settings_validate($form, &$form_state) { - // Validate paths to 403 and 404 error pages. - $item = array('link_path' => $form_state['values']['site_403']); - if (!empty($item['link_path']) && !menu_valid_path($item)) { - form_set_error('site_403', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path']))); - } - $item = array('link_path' => $form_state['values']['site_404']); - if (!empty($item['link_path']) && !menu_valid_path($item)) { - form_set_error('site_404', t("The path '@path' is either invalid or you do not have access to it.", array('@path' => $item['link_path']))); - } -} - /** * Menu callback; Menu page for the various logging options. */