domain_config_hook_test.module in Domain Access 8
Hook implementations for this module.
File
domain_config/tests/modules/domain_config_hook_test/domain_config_hook_test.moduleView source
<?php
/**
* @file
* Hook implementations for this module.
*/
/**
* Implements hook_user_login().
*/
function domain_config_hook_test_user_login($account) {
\Drupal::state()
->set('domain_config_test__user_login', TRUE);
}
/**
* Implements hook_module_implements_alter().
*/
function domain_config_hook_test_module_implements_alter(&$implementations, $hook) {
if ($hook == 'user_login') {
// Turn off the domain_config_hook_test's hook_user_login (above).
unset($implementations['domain_config_hook_test']);
}
}
Functions
Name | Description |
---|---|
domain_config_hook_test_module_implements_alter | Implements hook_module_implements_alter(). |
domain_config_hook_test_user_login | Implements hook_user_login(). |