View content type + some minor code improvements
[project/panels.git] / panels.install
1 <?php
2 // $Id$
3
4 /**
5 * Install the panels tables
6 */
7 function panels_install() {
8 switch ($GLOBALS['dbtype']) {
9 case 'pgsql':
10 case 'mysql':
11 case 'mysqli':
12 default:
13 db_query(<<<EOT
14 create table {panels_info} (
15 did int(10) not null default 0 primary key,
16 title varchar(128),
17 access varchar(128),
18 path varchar(128),
19 css_id varchar(128),
20 layout varchar(32)
21 )
22 EOT
23 );
24 db_query(<<<EOT
25 create table {panels_area} (
26 did int(10) not null default 0,
27 area varchar(32),
28 type varchar(32),
29 configuration longtext,
30 position int(5),
31 key (did)
32 );
33 EOT
34 );
35
36 }
37 }
38