| 1 |
<?php |
<?php |
| 2 |
// $Id: interests.install,v 1.4 2007/11/03 04:11:11 auriar Exp $ |
// $Id: $ |
| 3 |
|
|
| 4 |
|
/** |
| 5 |
|
* @file interests.install |
| 6 |
|
* Installation file for interests module |
| 7 |
|
*/ |
| 8 |
|
|
| 9 |
/** |
/** |
| 10 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 38 |
|
|
| 39 |
// apply updates for those using the initial release |
// apply updates for those using the initial release |
| 40 |
function interests_update_1() { |
function interests_update_1() { |
| 41 |
|
$ret = array(); |
| 42 |
switch ($GLOBALS['db_type']) { |
switch ($GLOBALS['db_type']) { |
| 43 |
case 'mysql': |
case 'mysql': |
| 44 |
case 'mysqli': |
case 'mysqli': |
| 48 |
) /*!40100 DEFAULT CHARACTER SET utf8 */;"); |
) /*!40100 DEFAULT CHARACTER SET utf8 */;"); |
| 49 |
break; |
break; |
| 50 |
} |
} |
| 51 |
return $ret ? $ret : array(); |
return $ret; |
| 52 |
} |
} |
| 53 |
|
|
| 54 |
function interests_uninstall(){ |
function interests_uninstall() { |
| 55 |
if (db_table_exists('interests')) { |
if (db_table_exists('interests')) { |
| 56 |
db_query("DROP TABLE {interests}"); |
db_query("DROP TABLE {interests}"); |
| 57 |
db_query("DROP TABLE {interests_vocabs}"); |
db_query("DROP TABLE {interests_vocabs}"); |