summaryrefslogtreecommitdiff
path: root/modules/system/system.admin.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-15 10:21:40 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-15 10:21:40 +0000
commit50dbab928ff67b9524ce74015eb678fd7d649cc8 (patch)
tree0189498573f3f4716fa9c7fafb5ded7ca80b5166 /modules/system/system.admin.inc
parent1b2ce46df2f11783fb766f3d3811dab1c4acb986 (diff)
downloadbrdo-50dbab928ff67b9524ce74015eb678fd7d649cc8.tar.gz
brdo-50dbab928ff67b9524ce74015eb678fd7d649cc8.tar.bz2
#209584 by Rob Loach: 404/403 validation is also done in runtime so to allow more flexibility here, remove the submission time validation
Diffstat (limited to 'modules/system/system.admin.inc')
-rw-r--r--modules/system/system.admin.inc17
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index af6e53c8a..75f3dcbe3 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -1217,27 +1217,10 @@ 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.
*/
function system_logging_overview() {