Parent Directory
|
Revision Log
|
Revision Graph
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 |