You are here

function jstools_modules_includes in Javascript Tools 5

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

Load available types by module.

3 calls to jstools_modules_includes()
activeedit_menu in activeedit/activeedit.module
Implementation of hook_menu().
activemenu_menu in activemenu/activemenu.module
Implementation of hook_menu().
dynamicload_load in dynamicload/dynamicload.module
Load needed files.

File

./jstools.module, line 89
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;
    }
  }
}