summaryrefslogtreecommitdiff
path: root/modules/menu/menu.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-05 14:43:26 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-05 14:43:26 +0000
commit39706e3c51cf206ca6669bbb7a090d2f7d394591 (patch)
tree9286ccd302d526ea8a1de799081356fcc77c28a3 /modules/menu/menu.install
parentd568128b9f7a0181b31e9baa087022e892352ea7 (diff)
downloadbrdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.gz
brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.bz2
- Patch #150245 by webchick, bjaspan, ralf, Arancaytar et al: move the .schema files into .install files to prevent mistakes.
Diffstat (limited to 'modules/menu/menu.install')
-rw-r--r--modules/menu/menu.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/menu/menu.install b/modules/menu/menu.install
index 9ef6e1548..d4fdfe42b 100644
--- a/modules/menu/menu.install
+++ b/modules/menu/menu.install
@@ -20,3 +20,22 @@ function menu_uninstall() {
drupal_uninstall_schema('menu');
menu_rebuild();
}
+
+/**
+ * Implementation of hook_schema().
+ */
+function menu_schema() {
+ $schema['menu_custom'] = array(
+ 'fields' => array(
+ // This is used as a block delta so length is 32.
+ 'menu_name' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
+ 'description' => array('type' => 'text', 'not null' => FALSE),
+ ),
+ 'primary key' => array('menu_name'),
+ );
+
+ return $schema;
+}
+
+