You are here

function ModuleImplements::reset in X Autoload 7.5

Replicates module_implements(*, *, TRUE)

Return value

null

See also

module_implements()

File

tests/src/VirtualDrupal/ModuleImplements.php, line 61

Class

ModuleImplements

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

function reset() {

  // Use the advanced drupal_static() pattern, since this is called very often.
  if (!isset($this->drupalStaticFast)) {
    $this->drupalStaticFast['implementations'] =& $this->drupalStatic
      ->get('module_implements');
  }
  $implementations =& $this->drupalStaticFast['implementations'];
  $implementations = array();
  $this->cache
    ->cacheSet('module_implements', array(), 'cache_bootstrap');
  $this->drupalStatic
    ->resetKey('module_hook_info');
  $this->drupalStatic
    ->resetKey('drupal_alter');
  $this->cache
    ->cacheClearAll('hook_info', 'cache_bootstrap');
  return NULL;
}