| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Install hooks for uc_aac.module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook install().
|
| 11 |
*/
|
| 12 |
function uc_aac_install() {
|
| 13 |
db_query("UPDATE {system} SET weight = 10 WHERE name = 'uc_aac'");
|
| 14 |
}
|
| 15 |
|
| 16 |
/**
|
| 17 |
* Implementation of hook uninstall().
|
| 18 |
*/
|
| 19 |
function uc_aac_uninstall() {
|
| 20 |
db_query("DELETE FROM {variable} WHERE name LIKE 'uc_aac%'");
|
| 21 |
}
|
| 22 |
|
| 23 |
function uc_aac_update_1() {
|
| 24 |
$ret = array();
|
| 25 |
$ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'uc_aac'");
|
| 26 |
return $ret;
|
| 27 |
}
|
| 28 |
|
| 29 |
function uc_aac_update_6200() {
|
| 30 |
// Clean up duplicate reprice variables
|
| 31 |
$reprice = variable_get('uc_aac_attribute_reprice', 1);
|
| 32 |
db_query("DELETE FROM {variable} WHERE name LIKE 'uc_aac%reprice'");
|
| 33 |
variable_set('uc_aac_reprice', $reprice);
|
| 34 |
}
|