diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
commit | 39706e3c51cf206ca6669bbb7a090d2f7d394591 (patch) | |
tree | 9286ccd302d526ea8a1de799081356fcc77c28a3 /modules/menu | |
parent | d568128b9f7a0181b31e9baa087022e892352ea7 (diff) | |
download | brdo-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')
-rw-r--r-- | modules/menu/menu.install | 19 | ||||
-rw-r--r-- | modules/menu/menu.schema | 17 |
2 files changed, 19 insertions, 17 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; +} + + diff --git a/modules/menu/menu.schema b/modules/menu/menu.schema deleted file mode 100644 index bc8c68a5b..000000000 --- a/modules/menu/menu.schema +++ /dev/null @@ -1,17 +0,0 @@ -<?php -// $Id$ - -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; -} - |