ModuleHandler::reload

public ModuleHandler::reload() Reloads all enabled modules. Overrides ModuleHandlerInterface::reload File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 149 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function reload() { $this->loaded = FALSE; $this->loadAll(); }

ModuleHandler::parseDependency

public static ModuleHandler::parseDependency($dependency) Parses a dependency for comparison by drupal_check_incompatibility(). Parameters $dependency: A dependency string, which specifies a module dependency, and optionally the project it comes from and versions that are supported. Supported formats include: 'module' 'project:module' 'project:module (>=version, version)' Return value An associative array with three keys: 'name' includes the name of the thing to depend on (e.g. 'foo'). '

ModuleHandler::moduleExists

public ModuleHandler::moduleExists($module) Determines whether a given module is enabled. Parameters string $module: The name of the module (without the .module extension). Return value bool TRUE if the module is both installed and enabled. Overrides ModuleHandlerInterface::moduleExists File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 245 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function moduleExis

ModuleHandler::loadInclude

public ModuleHandler::loadInclude($module, $type, $name = NULL) Loads a module include file. Examples: <?php // Load node.admin.inc from the node module. $this->loadInclude('node', 'inc', 'node.admin'); // Load content_types.inc from the node module. $this->loadInclude('node', 'inc', ''content_types'); ?> Parameters string $module: The module to which the include file belongs. string $type: The include file's type (file extension). string $name: (optional) The base file nam

ModuleHandler::loadAllIncludes

public ModuleHandler::loadAllIncludes($type, $name = NULL) Loads an include file for each enabled module. Parameters string $type: The include file's type (file extension). string $name: (optional) The base file name (without the $type extension). If omitted, each module's name is used; i.e., "$module.$type" by default. Overrides ModuleHandlerInterface::loadAllIncludes File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 252 Class ModuleHandler Class that manages modules in a Drupa

ModuleHandler::loadAll

public ModuleHandler::loadAll() Loads all enabled modules. Overrides ModuleHandlerInterface::loadAll File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 137 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function loadAll() { if (!$this->loaded) { foreach ($this->moduleList as $name => $module) { $this->load($name); } $this->loaded = TRUE; } }

ModuleHandler::load

public ModuleHandler::load($name) Includes a module's .module file. This prevents including a module more than once. Parameters string $name: The name of the module to load. Return value bool TRUE if the item is loaded or has already been loaded. Overrides ModuleHandlerInterface::load File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 121 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function load($name)

ModuleHandler::isLoaded

public ModuleHandler::isLoaded() Returns whether all modules have been loaded. Return value bool A Boolean indicating whether all modules have been loaded. This means all modules; the load status of bootstrap modules cannot be checked. Overrides ModuleHandlerInterface::isLoaded File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 157 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code public function isLoaded() { retur

ModuleHandler::invokeAll

public ModuleHandler::invokeAll($hook, array $args = array()) Invokes a hook in all enabled modules that implement it. Parameters string $hook: The name of the hook to invoke. array $args: Arguments to pass to the hook. Return value array An array of return values of the hook implementations. If modules return arrays from their implementations, those are merged into one array recursively. Note: integer keys in arrays will be lost, as the merge is done using array_merge_recursive(). Overrides

ModuleHandler::invoke

public ModuleHandler::invoke($module, $hook, array $args = array()) Invokes a hook in a particular module. Parameters string $module: The name of the module (without the .module extension). string $hook: The name of the hook to invoke. array $args: Arguments to pass to the hook implementation. Return value mixed The return value of the hook implementation. Overrides ModuleHandlerInterface::invoke File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 386 Class ModuleHandler Class th