function deprecated_module_test_system_info_alter
Same name in other branches
- 9 core/modules/system/tests/modules/deprecated_module_test/deprecated_module_test.module \deprecated_module_test_system_info_alter()
- 11.x core/modules/system/tests/modules/deprecated_module_test/deprecated_module_test.module \deprecated_module_test_system_info_alter()
Implements hook_system_info_alter().
File
-
core/
modules/ system/ tests/ modules/ deprecated_module_test/ deprecated_module_test.module, line 13
Code
function deprecated_module_test_system_info_alter(array &$info, Extension $file, $type) {
// Make the 'deprecated_module_contrib' look like it isn't part of core.
if ($type === 'module' && $info['name'] === 'Deprecated module contrib') {
$file->origin = 'sites/all';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.