1 system.api.php | hook_disable() |
Perform necessary actions before module is disabled.
The hook is called every time the module is disabled. 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 3213 - Hooks provided by Backdrop core and the System module.
Code
function hook_disable() {
my_module_cache_rebuild();
}