Mercurial > defr > drupal > core
comparison modules/forum/forum.install @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | fff6d4c8c043 |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: forum.install,v 1.16.2.1 2008/06/25 07:47:34 dries Exp $ | 2 // $Id: forum.install,v 1.16.2.2 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 forum_install() { | 7 function forum_install() { |
63 /** | 63 /** |
64 * Implementation of hook_schema(). | 64 * Implementation of hook_schema(). |
65 */ | 65 */ |
66 function forum_schema() { | 66 function forum_schema() { |
67 $schema['forum'] = array( | 67 $schema['forum'] = array( |
68 'description' => t('Stores the relationship of nodes to forum terms.'), | 68 'description' => 'Stores the relationship of nodes to forum terms.', |
69 'fields' => array( | 69 'fields' => array( |
70 'nid' => array( | 70 'nid' => array( |
71 'type' => 'int', | 71 'type' => 'int', |
72 'unsigned' => TRUE, | 72 'unsigned' => TRUE, |
73 'not null' => TRUE, | 73 'not null' => TRUE, |
74 'default' => 0, | 74 'default' => 0, |
75 'description' => t('The {node}.nid of the node.'), | 75 'description' => 'The {node}.nid of the node.', |
76 ), | 76 ), |
77 'vid' => array( | 77 'vid' => array( |
78 'type' => 'int', | 78 'type' => 'int', |
79 'unsigned' => TRUE, | 79 'unsigned' => TRUE, |
80 'not null' => TRUE, | 80 'not null' => TRUE, |
81 'default' => 0, | 81 'default' => 0, |
82 'description' => t('Primary Key: The {node}.vid of the node.'), | 82 'description' => 'Primary Key: The {node}.vid of the node.', |
83 ), | 83 ), |
84 'tid' => array( | 84 'tid' => array( |
85 'type' => 'int', | 85 'type' => 'int', |
86 'unsigned' => TRUE, | 86 'unsigned' => TRUE, |
87 'not null' => TRUE, | 87 'not null' => TRUE, |
88 'default' => 0, | 88 'default' => 0, |
89 'description' => t('The {term_data}.tid of the forum term assigned to the node.'), | 89 'description' => 'The {term_data}.tid of the forum term assigned to the node.', |
90 ), | 90 ), |
91 ), | 91 ), |
92 'indexes' => array( | 92 'indexes' => array( |
93 'nid' => array('nid'), | 93 'nid' => array('nid'), |
94 'tid' => array('tid') | 94 'tid' => array('tid') |