function patterns_load in Patterns 5
4 calls to patterns_load()
File
- ./
patterns.module, line 526 - Enables extremely simple adding/removing features to your site with minimal to no configuration
Code
function patterns_load() {
static $loaded = false;
if ($loaded) {
return;
}
require_once drupal_get_path('module', 'patterns') . '/patterns.inc';
foreach (file_scan_directory(drupal_get_path('module', 'patterns') . '/components', '.\\.inc') as $file) {
include_once $file->filename;
}
$loaded = true;
}