You are here

function webform_validation_testing_webform_validation_validators in Webform Validation 7

Implements hook_webform_validation_validators().

File

modules/webform_validation_testing/webform_validation_testing.module, line 11
Module file for webform_validation_testing.

Code

function webform_validation_testing_webform_validation_validators() {
  $validators = array(
    'webform_validation_testing_1' => array(
      'name' => t('Webform Validation Testing 1'),
      'component_types' => array(
        'all',
      ),
      'custom_data' => array(
        'label' => t('Custom data: Should be textarea'),
        'type' => 'textarea',
        'description' => t('Test textarea.'),
        'required' => FALSE,
      ),
      'description' => t('Used for testing.'),
    ),
  );
  return $validators;
}