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

Contents of /contributions/modules/blockcache/blockcache.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Sep 14 15:39:04 2006 UTC (3 years, 2 months ago) by jjeff
Branch: MAIN
CVS Tags: DRUPAL-5--0-1, HEAD
Branch point for: DRUPAL-5, DRUPAL-4-7
File MIME type: text/x-php
Initial commit of Block Cache module (for 4.7). Caches any block with several settings for how blocks are cached and when they refresh.
1 <?php
2
3 function blockcache_install(){
4 switch ($GLOBALS['db_type']) {
5 case 'mysql':
6 case 'mysqli':
7 db_query("CREATE TABLE {bc_blocks} (
8 my_delta int(10) NOT NULL,
9 module varchar(40) NOT NULL,
10 mod_delta varchar(40) NOT NULL,
11 PRIMARY KEY (my_delta)
12 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
13 break;
14 }
15 drupal_set_message(t('Database table for Block Cache module has been installed.'));
16 }
17
18 /*
19 CREATE TABLE bc_blocks (
20 my_delta int(10) NOT NULL,
21 module varchar(40) NOT NULL,
22 mod_delta int(10) NOT NULL,
23 PRIMARY KEY (my_delta)
24 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
25 */

  ViewVC Help
Powered by ViewVC 1.1.2