Simulates a custom module with a local po file.
<?php
/**
* @file
* Simulates a custom module with a local po file.
*/
/**
* Implements hook_system_info_alter().
*
* By default this modules is hidden but once enabled it behaves like a normal
* (not hidden) module. This hook implementation changes the .info.yml data by
* setting the hidden status to FALSE.
*/
function locale_test_translate_system_info_alter(&$info, $file, $type) {
if ($file->name == 'locale_test_translate') {
// Don't hide the module.
$info['hidden'] = FALSE;
}
}
Name | Description |
---|---|
locale_test_translate_system_info_alter | Implements hook_system_info_alter(). |