function hook_disable
Same name and namespace in other branches
- 6.x documentation-6.x/developer/hooks/install.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
10 functions implement hook_disable()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- dashboard_disable in drupal-7.x/
modules/ dashboard/ dashboard.install - Implements hook_disable().
- filter_admin_disable in drupal-7.x/
modules/ filter/ filter.admin.inc - Form constructor for the text format deletion confirmation form.
- filter_format_disable in drupal-7.x/
modules/ filter/ filter.module - Disables a text format.
- filter_test_filter_format_disable in drupal-7.x/
modules/ simpletest/ tests/ filter_test.module - Implements hook_filter_format_disable().
- language_types_disable in drupal-7.x/
includes/ language.inc - Disables the given language types.
1 invocation of hook_disable()
- module_disable in drupal-7.x/
includes/ module.inc - Disables a given set of modules.
Archivo
- drupal-7.x/
modules/ system/ system.api.php, line 3570 - Hooks provided by Drupal core and the System module.
Código
function hook_disable() {
mymodule_cache_rebuild();
}