| 7 bootstrap.inc | drupal_autoload_class($class) |
| 8 bootstrap.inc | drupal_autoload_class($class) |
Confirms that a class is available.
This function is rarely called directly. Instead, it is registered as an spl_autoload() handler, and PHP calls it for us when necessary.
Parameters
$class: The name of the class to check or load.
Return value
TRUE if the class is currently available, FALSE otherwise.
Related topics
File
- includes/
bootstrap.inc, line 2969 - Functions that need to be loaded on every Drupal request.
Code
<?php
function drupal_autoload_class($class) {
return _registry_check_code('class', $class);
}
?>Login or register to post comments