/** * @see _system_update_bootstrap_status() */ function systemUpdateBootstrapStatus() { $bootstrap_modules = array(); foreach (PureFunctions::bootstrapHooks() as $hook) { foreach ($this->hookSystem->moduleImplements($hook) as $module) { $bootstrap_modules[$module] = TRUE; } } $this->systemTable->setBootstrapModules($bootstrap_modules); // Reset the cached list of bootstrap modules. $this->systemListReset->systemListReset(); }
/** * @return true[] */ public function getBootstrapModules() { $bootstrap_modules = array(); foreach ($this->discoverModuleFilenames('module') as $name => $filename) { $php = file_get_contents($filename); foreach (PureFunctions::bootstrapHooks() as $hook) { if (FALSE !== strpos($php, 'function ' . $name . '_' . $hook)) { $bootstrap_modules[$name] = TRUE; break; } } } return $bootstrap_modules; }