function hook_enable
7.x system.api.php | hook_enable() |
6.x install.php | hook_enable() |
Perform necessary actions after module is enabled.
The hook is called everytime module is enabled.
Related topics
4 functions implement hook_enable()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- comment_enable in drupal-6.x/
modules/ comment/ comment.install - Implementation of hook_enable().
- forum_enable in drupal-6.x/
modules/ forum/ forum.install - menu_enable in drupal-6.x/
modules/ menu/ menu.module - Implementation of hook_enable()
- module_enable in drupal-6.x/
includes/ module.inc - Enable a given list of modules.
1 invocation of hook_enable()
- module_enable in drupal-6.x/
includes/ module.inc - Enable a given list of modules.
File
- documentation-6.x/
developer/ hooks/ install.php, line 351 - Documentation for the installation and update system.
Code
function hook_enable() {
mymodule_cache_rebuild();
}