hook_enable

function hook_enable

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

module_enable()

hook_install()

hook_modules_enabled()

Related topics

File

modules/system/system.api.php, line 3640
Hooks provided by Drupal core and the System module.

Code

function hook_enable() {
  mymodule_cache_rebuild();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_enable/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部