You are here

function patterns_load in Patterns 5

4 calls to patterns_load()
patterns_enable_pattern_submit in ./patterns.module
patterns_execute_pattern in ./patterns.module
patterns_get_patterns in ./patterns.module
patterns_list in ./patterns.module

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;
}