1 system.api.php | hook_enable() |
Perform necessary actions after module is enabled.
The hook is called every time the module is enabled. It should be implemented in the module's .install file. The implementation can rely on the .module file being loaded.
See also
Related topics
File
- core/
modules/ system/ system.api.php, line 3189 - Hooks provided by Backdrop core and the System module.
Code
function hook_enable() {
my_module_cache_rebuild();
}