Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
module.inc
»
module_enable
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
36 calls to module_enable()
BlockTest::testBlockRehash
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
BlockTest.php
Test
_block_rehash
().
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.
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.
CrudTest::_testActiveHelper
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Helper function for testActive().
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.
DrupalUnitTestBase::enableModules
in drupal/
core/
modules/
simpletest/
lib/
Drupal/
simpletest/
DrupalUnitTestBase.php
Enables modules for this test.
EntityAccessTest::testEntityTranslationAccess
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Entity/
EntityAccessTest.php
Ensures entity access for entity translations is properly working.
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.
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 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
().
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
module_list
().
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.
NodeTypeTest::testNodeTypeStatus
in drupal/
core/
modules/
node/
lib/
Drupal/
node/
Tests/
NodeTypeTest.php
Tests that
node_types_rebuild
() correctly handles the 'disabled' flag.
system_modules_submit
in drupal/
core/
modules/
system/
system.admin.inc
Submit callback; handles modules form submission.
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.
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.