You are here

function domain_test_domain_validate_alter in Domain Access 7.3

Same name and namespace in other branches
  1. 8 domain/tests/modules/domain_test/domain_test.module \domain_test_domain_validate_alter()

Implements hook_domain_validate_alter().

Remove any errors on validation.

File

tests/domain_test.domain.inc, line 76
Domain hook tests.

Code

function domain_test_domain_validate_alter(&$errors, $subdomain) {
  if ($subdomain == 'thisshouldfail') {
    $errors = array();
  }
}