You are here

function _messaging_drush_autoload_class in Messaging 6.4

Autoload hack, so autoload paths work with drush

1 string reference to '_messaging_drush_autoload_class'
drush_hack.inc in includes/drush_hack.inc
Drush hack to work with autoload module

File

includes/drush_hack.inc, line 16
Drush hack to work with autoload module

Code

function _messaging_drush_autoload_class($class) {
  static $lookup;
  if (!isset($lookup)) {
    $lookup = autoload_get_lookup();
  }
  if (!empty($lookup[$class]) && ($path = realpath($lookup[$class]))) {
    require $path;
  }
}