You are here

function _site_disclaimer_disable_validation in Site Disclaimer 6

Disable #required and #element_validate validation for D6 AHAH helper way.

1 call to _site_disclaimer_disable_validation()
site_disclaimer_js in ./site_disclaimer.admin.inc
Menu callback for AHAH addition.

File

./site_disclaimer.admin.inc, line 422
Administration settings for Site Disclaimer module.

Code

function _site_disclaimer_disable_validation(&$form) {
  foreach (element_children($form) as $child) {
    $form[$child]['#validated'] = TRUE;
    _site_disclaimer_disable_validation($form[$child]);
  }
}