You are here

function __acquia_purge_manualpurge_validate in Acquia Purge 7

Form validation callback.

See also

acquia_purge_manualpurge_form_full()

acquia_purge_manualpurge_form_paths()

1 call to __acquia_purge_manualpurge_validate()
_acquia_purge_manualpurge_validate in ./acquia_purge.module
Manual purge form: require inclusion wrapper.

File

./acquia_purge.admin.inc, line 316
Admin page callbacks and theme functions for the Acquia Purge module.

Code

function __acquia_purge_manualpurge_validate($form, &$form_state) {
  foreach ($form_state['values']['paths']['path'] as $id => $path) {
    if ($msg = _acquia_purge_input_validate($path)) {
      form_set_error('paths][path][' . $id, $msg);
    }
  }
}