You are here

function domain_test_domain_validate_alter in Domain Access 8

Same name and namespace in other branches
  1. 7.3 tests/domain_test.domain.inc \domain_test_domain_validate_alter()

Implements hook_domain_validate_alter().

File

domain/tests/modules/domain_test/domain_test.module, line 23
Domain hook test module.

Code

function domain_test_domain_validate_alter(&$error_list, $hostname) {

  // Deliberate test fail.
  if ($hostname == 'fail.example.com') {
    $error_list[] = 'Fail.example.com cannot be registered';
  }
}