Mercurial > defr > drupal > core
comparison modules/contact/contact.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: contact.install,v 1.10 2007/12/18 12:59:21 dries Exp $ | 2 // $Id: contact.install,v 1.10.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 contact_install() { | 7 function contact_install() { |
| 24 /** | 24 /** |
| 25 * Implementation of hook_schema(). | 25 * Implementation of hook_schema(). |
| 26 */ | 26 */ |
| 27 function contact_schema() { | 27 function contact_schema() { |
| 28 $schema['contact'] = array( | 28 $schema['contact'] = array( |
| 29 'description' => t('Contact form category settings.'), | 29 'description' => 'Contact form category settings.', |
| 30 'fields' => array( | 30 'fields' => array( |
| 31 'cid' => array( | 31 'cid' => array( |
| 32 'type' => 'serial', | 32 'type' => 'serial', |
| 33 'unsigned' => TRUE, | 33 'unsigned' => TRUE, |
| 34 'not null' => TRUE, | 34 'not null' => TRUE, |
| 35 'description' => t('Primary Key: Unique category ID.'), | 35 'description' => 'Primary Key: Unique category ID.', |
| 36 ), | 36 ), |
| 37 'category' => array( | 37 'category' => array( |
| 38 'type' => 'varchar', | 38 'type' => 'varchar', |
| 39 'length' => 255, | 39 'length' => 255, |
| 40 'not null' => TRUE, | 40 'not null' => TRUE, |
| 41 'default' => '', | 41 'default' => '', |
| 42 'description' => t('Category name.'), | 42 'description' => 'Category name.', |
| 43 ), | 43 ), |
| 44 'recipients' => array( | 44 'recipients' => array( |
| 45 'type' => 'text', | 45 'type' => 'text', |
| 46 'not null' => TRUE, | 46 'not null' => TRUE, |
| 47 'size' => 'big', | 47 'size' => 'big', |
| 48 'description' => t('Comma-separated list of recipient e-mail addresses.'), | 48 'description' => 'Comma-separated list of recipient e-mail addresses.', |
| 49 ), | 49 ), |
| 50 'reply' => array( | 50 'reply' => array( |
| 51 'type' => 'text', | 51 'type' => 'text', |
| 52 'not null' => TRUE, | 52 'not null' => TRUE, |
| 53 'size' => 'big', | 53 'size' => 'big', |
| 54 'description' => t('Text of the auto-reply message.'), | 54 'description' => 'Text of the auto-reply message.', |
| 55 ), | 55 ), |
| 56 'weight' => array( | 56 'weight' => array( |
| 57 'type' => 'int', | 57 'type' => 'int', |
| 58 'not null' => TRUE, | 58 'not null' => TRUE, |
| 59 'default' => 0, | 59 'default' => 0, |
| 60 'size' => 'tiny', | 60 'size' => 'tiny', |
| 61 'description' => t("The category's weight."), | 61 'description' => "The category's weight.", |
| 62 ), | 62 ), |
| 63 'selected' => array( | 63 'selected' => array( |
| 64 'type' => 'int', | 64 'type' => 'int', |
| 65 'not null' => TRUE, | 65 'not null' => TRUE, |
| 66 'default' => 0, | 66 'default' => 0, |
| 67 'size' => 'tiny', | 67 'size' => 'tiny', |
| 68 'description' => t('Flag to indicate whether or not category is selected by default. (1 = Yes, 0 = No)'), | 68 'description' => 'Flag to indicate whether or not category is selected by default. (1 = Yes, 0 = No)', |
| 69 ), | 69 ), |
| 70 ), | 70 ), |
| 71 'primary key' => array('cid'), | 71 'primary key' => array('cid'), |
| 72 'unique keys' => array( | 72 'unique keys' => array( |
| 73 'category' => array('category'), | 73 'category' => array('category'), |
