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

Contents of /contributions/modules/paypalnode/paypalnode.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Aug 2 11:13:13 2007 UTC (2 years, 3 months ago) by budda
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Initial commit of paypalnode module.
1 <?php
2 function paypalnode_install() {
3 switch ($GLOBALS["db_type"]) {
4 case "mysql":
5 case "mysqli":
6 if (db_query("
7 CREATE TABLE `term_price` (
8 `tids` varchar(255) NOT NULL,
9 `price` float NOT NULL,
10 PRIMARY KEY (`tids`)
11 ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;")) {
12 $success = TRUE;
13 }
14 break;
15
16 case "postgres":
17 case "default":
18 drupal_set_message(t("Your database is not supported"));
19 }
20
21
22 if (!empty($success)) {
23 drupal_set_message(t("PayPal Node databases installed"));
24 }
25 }

  ViewVC Help
Powered by ViewVC 1.1.2