function drupal_autoload_interface

Confirms that an interface 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

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

Return value

TRUE if the interface is currently available, FALSE otherwise.

Related topics

1 call to drupal_autoload_interface()
BootstrapAutoloadTestCase::testAutoloadCase in modules/simpletest/tests/bootstrap.test
Tests that autoloader name matching is not case sensitive.
2 string references to 'drupal_autoload_interface'
UpgradePathTestCase::setUp in modules/simpletest/tests/upgrade/upgrade.test
Overrides DrupalWebTestCase::setUp() for upgrade testing.
_drupal_bootstrap_database in includes/bootstrap.inc
Initializes the database system and registers autoload functions.

File

includes/bootstrap.inc, line 3476

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.