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

Contents of /contributions/modules/advanced_forum/advanced_forum.install

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


Revision 1.16 - (show annotations) (download) (as text)
Mon Apr 20 02:11:18 2009 UTC (7 months, 1 week ago) by michellec
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
Changes since 1.15: +0 -0 lines
File MIME type: text/x-php
Cleaning up / syncing head before making 2.x branch (2nd attempt)
1 <?php
2
3 // $Id$
4
5 /**
6 * @file
7 * Installation code for Advanced Forum.
8 */
9
10 function advanced_forum_install() {
11 db_query("UPDATE {system} SET weight = 10 WHERE name = 'advanced_forum'");
12 }
13
14 function advanced_forum_uninstall() {
15 variable_del('advanced_forum_style');
16 variable_del('advanced_forum_image_directory');
17 variable_del('advanced_forum_theme_all_comments');
18 variable_del('advanced_forum_hide_created');
19 variable_del('advanced_forum_topic_pager_max');
20 variable_del('advanced_forum_get_new_comments');
21 variable_del('advanced_forum_use_topic_navigation');
22 }
23
24 function advanced_forum_update_5000() {
25 $ret = array();
26 $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'advanced_forum'");
27 return $ret;
28 }
29
30 /* Removed these as they were a bad idea
31 function advanced_forum_update_5001() {
32 }
33
34 function advanced_forum_update_5002() {
35 }
36 */
37
38 function advanced_forum_update_5003() {
39 $ret = array();
40 $ret[] = update_sql('DROP TABLE IF EXISTS {advforum_last_post}');
41 return $ret;
42 }
43
44 function advanced_forum_update_5004() {
45 /* Removed variable clean up because it caused false fails. */
46 }
47

  ViewVC Help
Powered by ViewVC 1.1.2