oliverdavies.uk-drupal-old/web/modules/custom/blog/opdavies_blog.module
Oliver Davies cbe60209e6 Rename custom module directories
- Rename `opdavies_blog` to `blog`.
- Rename `opdavies_blog_test` to `blog_test`.
- Rename `opdavies_talks` to `talks`.
- Rename `opdavies_talks_test` to `talks_test`.

The files within the directories haven't changed, so there is no
breaking change caused by renaming the directories.

 Please enter the commit message for your changes. Lines starting
2020-09-04 21:25:36 +01:00

19 lines
273 B
Plaintext

<?php
/**
* @file
* Custom module.
*/
declare(strict_types=1);
use Symfony\Component\Finder\Finder;
$finder = Finder::create()
->in(__DIR__ . DIRECTORY_SEPARATOR . 'hooks')
->name('/.[php|inc]$/');
foreach ($finder as $file) {
include $file->getPathname();
}