You are here

function hook_domain_invalid_request in Domain Access 7.3

Notifies modules that an inactive domain has been requested.

Modules may choose to allow access to specific paths for purposes such as login.

Parameters

$path: The path requested.

$_domain: The active domain request. Identical to domain_get_domain().

$account: The user account making the request.

Return value

TRUE if access should be allowed. FALSE in all other cases.

2 functions implement hook_domain_invalid_request()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

domain_domain_invalid_request in ./domain.module
Implements hook_domain_invalid_request().
domain_test_domain_invalid_request in tests/domain_test.domain.inc
Implements hook_domain_invalid_request().
1 invocation of hook_domain_invalid_request()
domain_invalid_domain_requested in ./domain.module
Redirect a request to an invalid domain.

File

./domain.api.php, line 874
API documentation file.

Code

function hook_domain_invalid_request($path, $_domain, $account) {
  if ($path == 'user/login') {
    return TRUE;
  }
  return FALSE;
}