drupal_autoload_interface

Definition

drupal_autoload_interface($interface)
drupal/includes/bootstrap.inc, line 1452

Description

Confirm that an interface is available.

This function parallels drupal_function_exists(), but is rarely called directly. Instead, it is registered as an spl_autoload() handler, and PHP calls it for us when necessary.

Parameters

$interface The name of the interface to check or load.

Return value

TRUE if the interface is currently available, FALSE otherwise.

Related topics

Namesort iconDescription
Code registryThe code registry engine.

Code

function drupal_autoload_interface($interface) {
  return _registry_check_code('interface', $interface);
}