/[drupal]/contributions/modules/decisions/modes/selection.install
ViewVC logotype

Contents of /contributions/modules/decisions/modes/selection.install

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Dec 5 03:48:02 2008 UTC (11 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, DRUPAL-6--0-1-BETA3, HEAD
Changes since 1.1: +4 -4 lines
File MIME type: text/x-php
massive code cleanup to conform to the current coder module standards
1 <?php
2
3 /**
4 * @file
5 *
6 * .install file for the selection mode module
7 */
8
9 // $Id$
10
11 /**
12 * change the polls to selection on upgrade
13 */
14 function selection_update_1() {
15 switch ($GLOBALS['db_type']) {
16 case 'mysql':
17 case 'mysqli':
18 $items[] = update_sql("UPDATE {node} SET type='decisions_selection' WHERE type='decisions_poll';");
19 $items[] = update_sql("UPDATE {decisions} SET mode='selection' WHERE mode='poll';");
20 break;
21 }
22 return $items;
23 }
24

  ViewVC Help
Powered by ViewVC 1.1.2