| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: countries_api.install,v 1.1.4.2 2009/03/18 04:12:49 ngmaloney Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 30 |
function countries_api_uninstall() { |
function countries_api_uninstall() { |
| 31 |
db_query('DROP TABLE {countries_api_countries}'); |
db_query('DROP TABLE {countries_api_countries}'); |
| 32 |
} |
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* Implementation of hook_update_N(). |
| 36 |
|
*/ |
| 37 |
|
function countries_api_update_5101() { |
| 38 |
|
$ret = array(); |
| 39 |
|
//Include country module include for initial data import |
| 40 |
|
require_once(dirname(__FILE__) .'/countries_api.module'); |
| 41 |
|
_countries_api_flush(); |
| 42 |
|
countries_api_csv_import_countries(); |
| 43 |
|
return $ret; |
| 44 |
|
} |