function clientside_validation_get_validator_instance in Clientside Validation 7.2
1 call to clientside_validation_get_validator_instance()
File
- ./
clientside_validation.module, line 462 - Add client side validation to forms.
Code
function clientside_validation_get_validator_instance($class, $constructor_argument) {
$instances =& drupal_static('clientside_validation_validator_instances', array());
if (!isset($instances[$class]) && class_exists($class) && is_subclass_of($class, 'ClientsideValidationValidator')) {
$instances[$class] = new $class($constructor_argument);
}
elseif (!isset($instances[$class])) {
$instances[$class] = FALSE;
}
return $instances[$class];
}