Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
module.inc
»
module_enable
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
57 calls to module_enable()
ActiveTest::_testActiveHelper
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
ActiveTest.php
Helper function for testActive().
BlockTest::testBlockModuleDisable
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
BlockTest.php
Tests blocks belonging to disabled modules.
BlockTest::testBlockRehash
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
BlockTest.php
Test
_block_rehash
().
block_update_8006
in drupal/
core/
modules/
block/
block.install
Enable the Custom Block module.
BundleTest::testBundleRegistrationDynamic
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Bundle/
BundleTest.php
Tests that the DIC keeps up with module enable/disable in the same request.
CascadingStylesheetsTest::testRenderInlineFullPage
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Common/
CascadingStylesheetsTest.php
Tests rendering inline stylesheets through a full page request.
CKEditorAdminTest::testAdmin
in drupal/
core/
modules/
ckeditor/
lib/
Drupal/
ckeditor/
Tests/
CKEditorAdminTest.php
CKEditorLoadingTest::testLoading
in drupal/
core/
modules/
ckeditor/
lib/
Drupal/
ckeditor/
Tests/
CKEditorLoadingTest.php
Tests loading of CKEditor CSS, JS and JS settings.
ClassLoaderTest::testClassLoading
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ClassLoaderTest.php
Tests that module-provided classes can be loaded when a module is enabled.
ConfigInstallWebTest::testIntegrationModuleReinstallation
in drupal/
core/
modules/
config/
lib/
Drupal/
config/
Tests/
ConfigInstallWebTest.php
Tests module re-installation.
DefaultMobileMetaTagsTest::testRemovingDefaultMetaTags
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
DefaultMobileMetaTagsTest.php
Verifies that the default mobile meta tags can be removed.
DependencyTest::testEnableRequirementsFailureDependency
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
DependencyTest.php
Tests enabling a module that depends on a module which fails
hook_requirements
().
DependencyTest::testMissingModules
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
DependencyTest.php
Attempts to enable a module with a missing dependency.
DependencyTest::testModuleEnableOrder
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
DependencyTest.php
Tests that module dependencies are enabled in the correct order via the UI. Dependencies should be enabled before their dependents.
DrupalUnitTestBaseTest::testEnableModulesFixedList
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests that the module list is retained after enabling/installing/disabling modules.
DrupalUnitTestBaseTest::testEnableModulesInstall
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
Tests/
DrupalUnitTestBaseTest.php
Tests expected installation behavior of enableModules().
EditorAdminTest::enableUnicornEditor
in drupal/
core/
modules/
editor/
lib/
Drupal/
editor/
Tests/
EditorAdminTest.php
Enables the unicorn editor.
EntityApiInfoTest::testEntityInfoCacheWatchdog
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityApiInfoTest.php
Tests entity info cache after enabling a module with a dependency on an entity providing module.
EntityApiInfoTest::testEntityInfoChanges
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityApiInfoTest.php
Ensures entity info cache is updated after changes.
FieldImportCreateTest::testImportCreateDefault
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldImportCreateTest.php
Tests creating fields and instances during default config import.
ForumTest::testAddOrphanTopic
in drupal/
core/
modules/
forum/
lib/
Drupal/
forum/
Tests/
ForumTest.php
Tests that forum nodes can't be added without a parent.
InfoAlterTest::testSystemInfoAlter
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
InfoAlterTest.php
Tests that theme .info.yml data is rebuild after enabling a module.
install_base_system
in drupal/
core/
includes/
install.core.inc
Installation task; install the base functionality Drupal needs to bootstrap.
install_configure_form_submit
in drupal/
core/
includes/
install.core.inc
Form submission handler for
install_configure_form
().
LocaleContentTest::testNodeAdminLanguageFilter
in drupal/
core/
modules/
locale/
lib/
Drupal/
locale/
Tests/
LocaleContentTest.php
Test filtering Node content by language.
ModuleApiTest::testDependencyResolution
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
Test dependency resolution.
ModuleApiTest::testModuleImplements
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
Test
module_implements
() caching.
ModuleApiTest::testModuleInvoke
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
Test that
module_invoke
() can load a hook defined in
hook_hook_info
().
ModuleApiTest::testModuleInvokeAll
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
Test that
module_invoke_all
() can load a hook defined in
hook_hook_info
().
ModuleApiTest::testModuleInvokeAllDuringLoadFunction
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
Test that a menu item load function can invoke hooks defined in
hook_hook_info
().
ModuleApiTest::testModuleList
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleApiTest.php
The basic functionality of retrieving enabled modules.
ModuleEnable::testEnableUserTwice
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Module/
ModuleEnable.php
Tests enabling User module once more.
ModulesDisabledUpgradePathTest::testDisabledUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
ModulesDisabledUpgradePathTest.php
Tests an upgrade with all non-required modules installed but disabled.
NodeAdminTest::testContentAdminSort
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeAdminTest.php
Tests that the table sorting works on the content admin pages.
NodeTypeTest::testNodeTypeStatus
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeTypeTest.php
Tests that
node_types_rebuild
() correctly handles the 'disabled' flag.
node_update_8012
in drupal/
core/
modules/
node/
node.install
Enable History module.
PreviewTest::testPreviewContextual
in drupal/
core/
modules/
views_ui/
lib/
Drupal/
views_ui/
Tests/
PreviewTest.php
Tests contextual links in the preview form.
system_modules_submit
in drupal/
core/
modules/
system/
system.admin.inc
Submit callback; handles modules form submission.
system_update_8020
in drupal/
core/
modules/
system/
system.install
Conditionally enable the new Ban module.
system_update_8021
in drupal/
core/
modules/
system/
system.install
Enable the Actions module.
system_update_8042
in drupal/
core/
modules/
system/
system.install
Enable the new Entity module.
system_update_8048
in drupal/
core/
modules/
system/
system.install
Enable the new Menu link module.
ThemeTest::testInvalidTheme
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
System/
ThemeTest.php
Test that themes can't be enabled when the base theme or engine is missing.
ThemeTest::testRegistryRebuild
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Theme/
ThemeTest.php
Ensures the theme registry is rebuilt when modules are disabled/enabled.
toolbar_update_8000
in drupal/
core/
modules/
toolbar/
toolbar.install
Enable the Breakpoint and Config modules.
TrackerTest::testTrackerAdminUnpublish
in drupal/
core/
modules/
tracker/
lib/
Drupal/
tracker/
Tests/
TrackerTest.php
Tests that publish/unpublish works at admin/content/node.
update_fix_d8_requirements
in drupal/
core/
includes/
update.inc
Performs Drupal 7.x to 8.x required
update.php
updates.
update_prepare_d8_language
in drupal/
core/
includes/
update.inc
Prepares Drupal 8 language changes for the bootstrap if needed.
UserCancelTest::testMassUserCancelByAdmin
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserCancelTest.php
Create an administrative user and mass-delete other users.
UserCancelTest::testUserCancelUid1
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserCancelTest.php
Tests that user account for uid 1 cannot be cancelled.
UserCancelTest::testUserDelete
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserCancelTest.php
Delete account and remove all content.
UserLoginTest::testPasswordRehashOnLogin
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
Tests/
UserLoginTest.php
Test that user password is re-hashed upon login after changing $count_log2.
user_update_8011
in drupal/
core/
modules/
user/
user.install
Create user picture field.
ViewTestBase::enableViewsTestModule
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
ViewTestBase.php
Sets up the
views_test_data.module
.
VocabularyUnitTest::testUninstallReinstall
in drupal/
core/
modules/
taxonomy/
lib/
Drupal/
taxonomy/
Tests/
VocabularyUnitTest.php
Test uninstall and reinstall of the taxonomy module.
WebTestBase::setUp
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
WebTestBase.php
Sets up a Drupal site for running functional and integration tests.
_install_module_batch
in drupal/
core/
includes/
install.core.inc
Batch callback for batch installation of modules.