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

Contents of /contributions/modules/google_groups/google_groups.install

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


Revision 1.3 - (show annotations) (download) (as text)
Thu Mar 26 14:19:25 2009 UTC (8 months ago) by dragonwize
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-BETA2, DRUPAL-6--2-0, HEAD
Changes since 1.2: +3 -9 lines
File MIME type: text/x-php
Fixed #414262 by dragonwize, alex73: Need to create initial groups array.
1 <?php
2 // $Id: google_groups.install,v 1.2 2009/03/26 04:00:38 dragonwize Exp $
3
4 function google_groups_install() {
5 variable_set('google_groups_settings', array('next_delta' => 1, 'groups' => array()));
6 }
7
8 function google_groups_uninstall() {
9 variable_del('google_groups_settings');
10 }
11
12 /**
13 * Update from 1.x to 2.x.
14 */
15 function google_groups_update_6200() {
16 // Change 1.x vars to 2.x vars.
17 $settings = array('next_delta' => 2, 'groups' => array());
18 $settings['groups']['gg1'] = array(
19 'id' => variable_get('google_groups_group', ''),
20 'name' => variable_get('google_groups_name', ''),
21 'register' => variable_get('google_groups_register', 0),
22 'register_default' => variable_get('google_groups_register_default', 0),
23 'register_default_forced' => variable_get('google_groups_register_default_forced', 0),
24 );
25 variable_set('google_groups_settings', $settings);
26
27 // Delete old 1.x vars.
28 variable_del('google_groups_group');
29 variable_del('google_groups_group_name');
30 variable_del('google_groups_setting_register');
31 variable_del('google_groups_setting_register_default');
32 variable_del('google_groups_setting_register_default_forced');
33
34 return array();
35 }

  ViewVC Help
Powered by ViewVC 1.1.2