| 1 |
<?php
|
| 2 |
// $Id: register_country.install,v 1.5 2007/07/13 22:31:18 nancyw Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function register_country_install() {
|
| 8 |
watchdog ('register_country', 'register_country module installed');
|
| 9 |
drupal_set_message(t('The Register_Country module was installed. You may want to go to the <a href="!settings">settings page now</a>.', array('!settings' => url('admin/build/register_country'))));
|
| 10 |
|
| 11 |
}
|
| 12 |
|
| 13 |
/**
|
| 14 |
* Implementation of hook_uninstall().
|
| 15 |
*/
|
| 16 |
function register_country_uninstall() {
|
| 17 |
|
| 18 |
variable_del('register_country_settings');
|
| 19 |
// clear the cache tables (see http://drupal.org/node/64279#comment-211282)
|
| 20 |
cache_clear_all('*', 'cache', TRUE);
|
| 21 |
cache_clear_all('*', 'cache_filter', TRUE);
|
| 22 |
cache_clear_all('*', 'cache_menu', TRUE);
|
| 23 |
cache_clear_all('*', 'cache_page', TRUE);
|
| 24 |
|
| 25 |
watchdog ('register_country', 'register_country module removed');
|
| 26 |
|
| 27 |
}
|
| 28 |
?>
|