/[drupal]/contributions/modules/openresort/taxes/taxes.install
ViewVC logotype

Contents of /contributions/modules/openresort/taxes/taxes.install

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


Revision 1.5 - (show annotations) (download) (as text)
Wed Jan 2 22:14:26 2008 UTC (22 months, 3 weeks ago) by marcingy
Branch: MAIN
CVS Tags: DRUPAL-5--1-15-1, DRUPAL-5--1-15-2, DRUPAL-5--1-16-6, DRUPAL-5--1-16-4, DRUPAL-5--1-16-5, DRUPAL-5--1-16-2, DRUPAL-5--1-16-3, DRUPAL-5--1-16-1, DRUPAL-5--1-15, DRUPAL-5--1-16, HEAD
Changes since 1.4: +0 -0 lines
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 // $Id: $
3
4 function taxes_install() {
5
6 switch ($GLOBALS['db_type']) {
7 case 'pgsql':
8 case 'mysql':
9 case 'mysqli':
10 db_query("CREATE TABLE {business_taxes} (
11 tid int(10) unsigned NOT NULL auto_increment,
12 term_id int(10) unsigned NOT NULL default '0',
13 name varchar(255) NOT NULL default '',
14 rate int(10) unsigned NOT NULL default '0',
15 weight tinyint(4) NOT NULL default '0',
16 PRIMARY KEY (tid),
17 KEY term_id (term_id)
18 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
19 break;
20 }
21
22 // Notify of changes
23 drupal_set_message(t('Business taxes module was successfully installed with default options. To customize default terms, please view the <a href="%settings">terms settings page</a>.', array('%settings' => url('admin/business/terms'))));
24
25 }

  ViewVC Help
Powered by ViewVC 1.1.2