| 1 |
<?php |
<?php |
| 2 |
// $Id: autoload.module,v 1.1.2.2 2008/12/02 05:13:51 crell Exp $ |
// $Id: autoload.module,v 1.1.2.3 2008/12/02 05:19:39 crell Exp $ |
| 3 |
/** |
/** |
| 4 |
* Implementation of hook_init(). |
* Implementation of hook_init(). |
| 5 |
*/ |
*/ |
| 8 |
} |
} |
| 9 |
|
|
| 10 |
/** |
/** |
| 11 |
* Implementation of hook_flush_caches9). |
* Implementation of hook_flush_caches(). |
| 12 |
*/ |
*/ |
| 13 |
function autoload_flush_caches() { |
function autoload_flush_caches() { |
| 14 |
// Force a rescan of the autload hook. |
// Force a rescan of the autload hook. |
| 21 |
function autoload_class($class) { |
function autoload_class($class) { |
| 22 |
static $lookup; |
static $lookup; |
| 23 |
|
|
| 24 |
if (empty($lookup)) { |
if (!isset($lookup)) { |
| 25 |
$lookup = autoload_get_lookup(); |
$lookup = autoload_get_lookup(); |
| 26 |
} |
} |
| 27 |
|
|