| 1 |
<?php |
<?php |
| 2 |
// $Id: stock.install,v 1.1.4.3 2008/03/18 22:58:39 kbahey Exp $ |
// $Id: stock.install,v 1.3 2008/09/22 03:58:45 kbahey Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install() |
* Implementation of hook_install() |
| 24 |
'default' => ''), |
'default' => ''), |
| 25 |
), |
), |
| 26 |
'primary key' => array('uid'), |
'primary key' => array('uid'), |
| 27 |
); |
); |
| 28 |
return $schema; |
return $schema; |
| 29 |
} |
} |
| 30 |
function stock_install() { |
function stock_install() { |
| 31 |
drupal_install_schema('stock'); |
drupal_install_schema('stock'); |
| 32 |
} |
} |
| 33 |
|
|
|
|
|
| 34 |
/** |
/** |
| 35 |
* Implementation of hook_uninstall() |
* Implementation of hook_uninstall() |
| 36 |
* |
* |
| 37 |
* This will automatically remove the MySQL & PostgreSQL database tables for Stock module. |
* This will automatically remove the MySQL & PostgreSQL database tables for Stock module. |
|
* |
|
| 38 |
*/ |
*/ |
| 39 |
function stock_uninstall() { |
function stock_uninstall() { |
| 40 |
drupal_uninstall_schema('stock'); |
drupal_uninstall_schema('stock'); |