summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormoshe weitzman2008-02-17 16:26:11 (GMT)
committer moshe weitzman2008-02-17 16:26:11 (GMT)
commitad39dc6649d23698249909027553cd41bf54c778 (patch)
tree42a7119a2b31ecd6966cfea874f942cecfeaea3e
parent71d543d76ecdd447563938e2da7a98b45c600cc8 (diff)
create menu link for run cron with devel as owning module. also menu.inc is not that smart. it does not use the module column for uninstall. thats a bug IMO. anyway, i worked around this in devel_uninstall().
-rw-r--r--devel.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel.install b/devel.install
index 4af32cc..dfd3c15 100644
--- a/devel.install
+++ b/devel.install
@@ -43,6 +43,7 @@ function devel_install() {
'link_title' => 'Run cron',
'link_path' => 'admin/reports/status/run-cron',
'menu_name' => 'devel',
+ 'module' => 'devel',
);
menu_link_save($item);
}
@@ -66,6 +67,7 @@ function devel_uninstall() {
variable_del('devel_store_queries');
db_query("DELETE FROM {menu_custom} WHERE menu_name = 'devel'");
+ db_query("DELETE FROM {menu_links} WHERE module = 'devel'");
}
/**