You are here

function jstools_modules_includes in Javascript Tools 6

Same name and namespace in other branches
  1. 5 jstools.module \jstools_modules_includes()

Load available types by module.

File

./jstools.module, line 75
Provide common methods used by jstools package modules.

Code

function jstools_modules_includes($module) {
  $path = drupal_get_path('module', $module) . '/modules';
  $files = file_scan_directory($path, '\\.inc$');
  foreach ($files as $file) {
    if (module_exists($file->name)) {
      include_once $file->filename;
    }
  }
}