Mercurial > defr > drupal > core
comparison modules/menu/menu.install @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | c1f4ac30525a |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: menu.install,v 1.9 2008/01/30 20:27:28 goba Exp $ | 2 // $Id: menu.install,v 1.9.2.1 2009/01/06 15:46:37 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * Implementation of hook_install(). | 5 * Implementation of hook_install(). |
6 */ | 6 */ |
7 function menu_install() { | 7 function menu_install() { |
26 /** | 26 /** |
27 * Implementation of hook_schema(). | 27 * Implementation of hook_schema(). |
28 */ | 28 */ |
29 function menu_schema() { | 29 function menu_schema() { |
30 $schema['menu_custom'] = array( | 30 $schema['menu_custom'] = array( |
31 'description' => t('Holds definitions for top-level custom menus (for example, Primary Links).'), | 31 'description' => 'Holds definitions for top-level custom menus (for example, Primary Links).', |
32 'fields' => array( | 32 'fields' => array( |
33 'menu_name' => array( | 33 'menu_name' => array( |
34 'type' => 'varchar', | 34 'type' => 'varchar', |
35 'length' => 32, | 35 'length' => 32, |
36 'not null' => TRUE, | 36 'not null' => TRUE, |
37 'default' => '', | 37 'default' => '', |
38 'description' => t('Primary Key: Unique key for menu. This is used as a block delta so length is 32.'), | 38 'description' => 'Primary Key: Unique key for menu. This is used as a block delta so length is 32.', |
39 ), | 39 ), |
40 'title' => array( | 40 'title' => array( |
41 'type' => 'varchar', | 41 'type' => 'varchar', |
42 'length' => 255, | 42 'length' => 255, |
43 'not null' => TRUE, | 43 'not null' => TRUE, |
44 'default' => '', | 44 'default' => '', |
45 'description' => t('Menu title; displayed at top of block.'), | 45 'description' => 'Menu title; displayed at top of block.', |
46 ), | 46 ), |
47 'description' => array( | 47 'description' => array( |
48 'type' => 'text', | 48 'type' => 'text', |
49 'not null' => FALSE, | 49 'not null' => FALSE, |
50 'description' => t('Menu description.'), | 50 'description' => 'Menu description.', |
51 ), | 51 ), |
52 ), | 52 ), |
53 'primary key' => array('menu_name'), | 53 'primary key' => array('menu_name'), |
54 ); | 54 ); |
55 | 55 |