function module_test_module_implements_alter

Same name in other branches
  1. 9 core/modules/system/tests/modules/module_test/module_test.module \module_test_module_implements_alter()
  2. 8.9.x core/modules/system/tests/modules/module_test/module_test.module \module_test_module_implements_alter()
  3. 10 core/modules/system/tests/modules/module_test/module_test.module \module_test_module_implements_alter()
  4. 11.x core/modules/system/tests/modules/module_test/module_test.module \module_test_module_implements_alter()

Implements hook_module_implements_alter()

File

modules/simpletest/tests/module_test.module, line 136

Code

function module_test_module_implements_alter(&$implementations, $hook) {
    if ($hook === 'altered_test_hook') {
        // Add a hook implementation, that will be found in
        // module_test.implementations.inc.
        $implementations['module_test'] = 'implementations';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.