You are here

function module_test_module_implements_alter in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/module_test/module_test.module \module_test_module_implements_alter()
  2. 9 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()

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';
  }
}