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

Contents of /contributions/modules/block_assign/block_assign.install

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


Revision 1.4 - (show annotations) (download) (as text)
Wed Feb 6 12:59:17 2008 UTC (21 months, 3 weeks ago) by daryl
Branch: MAIN
CVS Tags: DRUPAL-5--1-1, HEAD
Changes since 1.3: +3 -3 lines
File MIME type: text/x-php
fixing table prefix issue
1 <?php
2 // $Id: block_assign.install,v 1.3 2008/02/04 14:14:41 daryl Exp $
3
4 function block_assign_install() {
5 switch ($GLOBALS['db_type']) {
6 case 'mysql':
7 case 'mysqli':
8 db_query('
9 CREATE TABLE `{block_assign}` (
10 `id` int(10) unsigned zerofill NOT NULL auto_increment,
11 `module` varchar(30) default NULL,
12 `condition_type` varchar(4) default NULL,
13 `condition_value` text,
14 `box_id` int(3) default NULL,
15 PRIMARY KEY (`id`)
16 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
17 ');
18 //By default, show the user block on all pages.
19 db_query('
20 INSERT INTO {block_assign} (module, condition_type, condition_value, box_id) VALUES("user", "uri", ".*", 1)
21 ');
22 }
23 }

  ViewVC Help
Powered by ViewVC 1.1.2