function module_load_install in Drupal 8
Same name and namespace in other branches
- 5 includes/module.inc \module_load_install()
- 6 includes/module.inc \module_load_install()
- 7 includes/module.inc \module_load_install()
- 9 core/includes/module.inc \module_load_install()
Loads a module's installation hooks.
Parameters
$module: The name of the module (without the .module extension).
Return value
The name of the module's install file, if successful; FALSE otherwise.
17 calls to module_load_install()
- drupal_check_module in core/
includes/ install.inc - Checks a module's requirements.
- drupal_get_module_schema in core/
includes/ schema.inc - Returns a module's schema.
- drupal_load_updates in core/
includes/ install.inc - Loads .install files for installed modules to initialize the update system.
- EntityFieldTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityFieldTest.php - EntityLanguageTestBase::setUp in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityLanguageTestBase.php
File
- core/
includes/ module.inc, line 95 - API for loading and interacting with Drupal modules.
Code
function module_load_install($module) {
// Make sure the installation API is available
include_once __DIR__ . '/install.inc';
return module_load_include('install', $module);
}