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

Contents of /contributions/modules/uc_aac/uc_aac.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Nov 4 19:04:50 2009 UTC (3 weeks, 1 day ago) by antoinesolutions
Branch: MAIN
Branch point for: DRUPAL-6--2
File MIME type: text/x-php
#562100 by longwave, Antoine Solutions: Initial commit of the 6.x-2.x code.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2