Name

always_fail — always fail

DESCRIPTION

Verification of the form field value always fails.

EXAMPLES

Example: always_fail

FORM_FIELD_NAME=always_fail

NOTES

AVAILABILITY

always_fail is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: code/OrderCheck/always_fail.oc
Lines: 17


# Copyright 2006-2007 Interchange Development Group and others
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.  See the LICENSE file for details.
# 
# $Id: always_fail.oc,v 1.2 2007-03-30 23:40:48 pajamian Exp $

CodeDef always_fail OrderCheck 1
CodeDef always_fail Description Always fails
CodeDef always_fail Routine <<EOR
sub {
my ($ref, $name, $value, $msg) = @_;
return (0, $name, $msg || errmsg('failed'));
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

always_pass(7ic)

DocBook! Interchange!