Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / registry_files_alter.twig
1 /**
2  * Implements hook_registry_files_alter().
3  */
4 function {{ machine_name }}_registry_files_alter(&$files, $modules) {
5   foreach ($modules as $module) {
6     // Only add test files for disabled modules, as enabled modules should
7     // already include any test files they provide.
8     if (!$module->status) {
9       $dir = $module->dir;
10       foreach ($module->info['files'] as $file) {
11         if (substr($file, -5) == '.test') {
12           $files["$dir/$file"] = array('module' => $module->name, 'weight' => $module->weight);
13         }
14       }
15     }
16   }
17 }