You are here

function paranoia_form_validate_always_fail in Paranoia 7

Same name and namespace in other branches
  1. 8 paranoia.module \paranoia_form_validate_always_fail()

Form validation that will always throw an error to prevent submits.

1 string reference to 'paranoia_form_validate_always_fail'
paranoia_form_alter in ./paranoia.module
Implements hook_form_alter().

File

./paranoia.module, line 420
Paranoia module file. Provides various extra security features.

Code

function paranoia_form_validate_always_fail() {
  $message = variable_get('paranoia_form_disabled_message', 'This form is disabled for security reasons. See <a href="https://www.drupal.org/node/2313945">details</a> on why this form is disabled.');
  drupal_set_message($message, 'error');
}