/[drupal]/contributions/modules/virtual_site/virtual_site.install
ViewVC logotype

Contents of /contributions/modules/virtual_site/virtual_site.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Feb 18 21:09:59 2008 UTC (21 months, 1 week ago) by fokke
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, DRUPAL-6--1-0-beta1, HEAD
File MIME type: text/x-php
Initial commit
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_install().
6 */
7 function virtual_site_install() {
8 drupal_install_schema('virtual_site');
9 }
10
11 /**
12 * Implementation of hook_uninstall().
13 */
14 function virtual_site_uninstall() {
15 drupal_uninstall_schema('virtual_site');
16 }
17
18 /**
19 * Implementation of hook_schema().
20 */
21 function virtual_site_schema() {
22 $schema['virtual_sites'] = array(
23 'fields' => array(
24 'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
25 'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
26 'weight' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
27 'status' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 1),
28 'conditions' => array('type' => 'text', 'size' => 'big'),
29 'features' => array('type' => 'text', 'size' => 'big'),
30 ),
31 'primary key' => array('sid'),
32 );
33
34 return $schema;
35 }
36
37 ?>

  ViewVC Help
Powered by ViewVC 1.1.2