浏览代码

- #311977: update function

Roger López 16 年之前
父节点
当前提交
a42aa98302
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      simplemenu.install

+ 14 - 0
simplemenu.install

@@ -0,0 +1,14 @@
+<?php
+// $Id$
+
+/**
+ * Implementation of hook_update_N().
+ */
+function simplemenu_update_6001() {
+  // if navigation menu was used in Drupal 5 use the same in Drupal 6.
+  // otherwise, we can't do anything.
+  if(variable_get('simplemenu_menu', 1) == 1) {
+    variable_set('simplemenu_menu', 'navigation:0');
+  }
+  return array();
+}