Browse Source

Munin API submodules modify paths upon enable/disable, not install.

Frederic G. MARAND 13 years ago
parent
commit
ea40bbaa6c
2 changed files with 18 additions and 4 deletions
  1. 9 2
      modules/munin_apc/munin_apc.install
  2. 9 2
      modules/munin_core/munin_core.install

+ 9 - 2
modules/munin_apc/munin_apc.install

@@ -11,8 +11,15 @@
  */
 
 /**
- * Implements hook_install().
+ * Implements hook_enable().
  */
-function munin_apc_install() {
+function munin_apc_enable() {
+  variable_set('menu_rebuild_needed', TRUE);
+}
+
+/**
+ * Implements hook_disable().
+ */
+function munin_apc_disable() {
   variable_set('menu_rebuild_needed', TRUE);
 }

+ 9 - 2
modules/munin_core/munin_core.install

@@ -11,8 +11,15 @@
  */
 
 /**
- * Implements hook_install().
+ * Implements hook_enable().
  */
-function munin_core_install() {
+function munin_core_enable() {
+  variable_set('menu_rebuild_needed', TRUE);
+}
+
+/**
+ * Implements hook_disable().
+ */
+function munin_core_disable() {
   variable_set('menu_rebuild_needed', TRUE);
 }