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

Contents of /contributions/modules/smfforum/smfforum.install

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


Revision 1.4 - (show annotations) (download) (as text)
Sat May 31 20:30:52 2008 UTC (17 months, 4 weeks ago) by vb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +6 -4 lines
File MIME type: text/x-php
Log messages control
Timezones sync control
When logging out redirect to front page in D6
Some constants to use in emergency
1 <?php
2 // $Id: smfforum.install,v 1.3 2008/04/02 18:47:29 vb Exp $
3 /**
4 * Copyright (Ñ) 2007-2008 by Vadim G.B. (http://vgb.org.ru)
5 */
6
7 /**
8 * Implementation of hook_install().
9 */
10 //function smfforum_install() {
11 //}
12
13 /**
14 * Implementation of hook_uninstall().
15 */
16
17 function smfforum_uninstall() {
18
19 // Drop variables.
20 $variables = array(
21 'smfforum_root',
22 'smfforum_inc',
23 'smfforum_api_file',
24 'smfforum_master',
25 'smfforum_user_login',
26 'smfforum_qookie_test',
27 'smfforum_cookie_length',
28 'smfforum_login_cookie_length',
29 'smfforum_num_whos_online',
30 'smfforum_num_recent_topics',
31 'smfforum_num_recent_posts',
32 'smfforum_num_top_posters',
33 'smfforum_user_ban',
34 'smfforum_set_msg',
35 'smfforum_log_msg',
36 'smfforum_sync_signature',
37 'smfforum_sync_avatar',
38 'smfforum_sync_timezone',
39 'smfforum_map_name',
40 'smfforum_map_gender',
41 'smfforum_map_birthdate',
42 'smfforum_map_personalText',
43 'smfforum_map_usertitle',
44 'smfforum_map_location',
45 'smfforum_map_ICQ',
46 'smfforum_map_AIM',
47 'smfforum_map_YIM',
48 'smfforum_map_MSN',
49 'smfforum_map_websiteTitle',
50 'smfforum_map_websiteUrl',
51 'smfforum_page_frame',
52 'smfforum_page_width',
53 'smfforum_page_height',
54 'smfforum_page_scroll',
55 'smfforum_recent_topics_br',
56 'smfforum_recent_posts_br',
57 );
58
59 foreach ($variables as $variable) {
60 variable_del($variable);
61 }
62
63 drupal_set_message(t('SMFforum module uninstalled successfully.'));
64 }

  ViewVC Help
Powered by ViewVC 1.1.2