You are here

function _xautoload_finder in X Autoload 6

Same name and namespace in other branches
  1. 7 xautoload.module \_xautoload_finder()

File

./xautoload.module, line 23

Code

function _xautoload_finder() {
  static $_finder;
  if (!isset($_finder)) {
    $modules = module_list();
    foreach ($modules as $module => $m) {
      $path = drupal_get_path('module', $module) . '/lib/';
      if (is_dir($path)) {
        $modules[$module] = $path;
      }
    }
    $_finder = new xautoload_ClassFinder($modules);
  }
  return $_finder;
}