/[drupal]/contributions/modules/register_country/register_country.install
ViewVC logotype

Contents of /contributions/modules/register_country/register_country.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Jul 18 21:30:23 2007 UTC (2 years, 4 months ago) by nancyw
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Initial Release for Drupal 5.0
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.2