Mercurial > defr > drupal > core
comparison modules/book/book.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: book.install,v 1.20 2008/01/10 18:13:42 goba Exp $ | 2 // $Id: book.install,v 1.20.2.1 2009/01/06 15:46:36 goba Exp $ |
| 3 | 3 |
| 4 /** | 4 /** |
| 5 * Implementation of hook_install(). | 5 * Implementation of hook_install(). |
| 6 */ | 6 */ |
| 7 function book_install() { | 7 function book_install() { |
| 249 /** | 249 /** |
| 250 * Implementation of hook_schema(). | 250 * Implementation of hook_schema(). |
| 251 */ | 251 */ |
| 252 function book_schema() { | 252 function book_schema() { |
| 253 $schema['book'] = array( | 253 $schema['book'] = array( |
| 254 'description' => t('Stores book outline information. Uniquely connects each node in the outline to a link in {menu_links}'), | 254 'description' => 'Stores book outline information. Uniquely connects each node in the outline to a link in {menu_links}', |
| 255 'fields' => array( | 255 'fields' => array( |
| 256 'mlid' => array( | 256 'mlid' => array( |
| 257 'type' => 'int', | 257 'type' => 'int', |
| 258 'unsigned' => TRUE, | 258 'unsigned' => TRUE, |
| 259 'not null' => TRUE, | 259 'not null' => TRUE, |
| 260 'default' => 0, | 260 'default' => 0, |
| 261 'description' => t("The book page's {menu_links}.mlid."), | 261 'description' => "The book page's {menu_links}.mlid.", |
| 262 ), | 262 ), |
| 263 'nid' => array( | 263 'nid' => array( |
| 264 'type' => 'int', | 264 'type' => 'int', |
| 265 'unsigned' => TRUE, | 265 'unsigned' => TRUE, |
| 266 'not null' => TRUE, | 266 'not null' => TRUE, |
| 267 'default' => 0, | 267 'default' => 0, |
| 268 'description' => t("The book page's {node}.nid."), | 268 'description' => "The book page's {node}.nid.", |
| 269 ), | 269 ), |
| 270 'bid' => array( | 270 'bid' => array( |
| 271 'type' => 'int', | 271 'type' => 'int', |
| 272 'unsigned' => TRUE, | 272 'unsigned' => TRUE, |
| 273 'not null' => TRUE, | 273 'not null' => TRUE, |
| 274 'default' => 0, | 274 'default' => 0, |
| 275 'description' => t("The book ID is the {book}.nid of the top-level page."), | 275 'description' => "The book ID is the {book}.nid of the top-level page.", |
| 276 ), | 276 ), |
| 277 ), | 277 ), |
| 278 'primary key' => array('mlid'), | 278 'primary key' => array('mlid'), |
| 279 'unique keys' => array( | 279 'unique keys' => array( |
| 280 'nid' => array('nid'), | 280 'nid' => array('nid'), |
