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

Contents of /contributions/modules/constant_contact/constant_contact.install

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


Revision 1.2 - (show annotations) (download) (as text)
Wed Jan 30 03:01:31 2008 UTC (21 months, 4 weeks ago) by konsumer
Branch: MAIN
CVS Tags: DRUPAL-5--2-0, DRUPAL-5--1-0
Branch point for: DRUPAL-5, DRUPAL-6--1
Changes since 1.1: +1 -1 lines
File MIME type: text/x-php
Fixed ID tags and minor block issues
1 <?php
2 // $Id:
3
4 /**
5 * Implementation of hook_install().
6 */
7 function constant_contact_install() {
8 drupal_set_message(t('Constant Contact has been installed. Please visit !url_cfg to configure your settings. Visit !url_import to import your existing users.', array('!url_cfg' => l(t('Constant Contact Settings'), 'admin/settings/constant_contact'), '!url_import' => l(t('Constant Contact Import Users'), 'admin/settings/constant_contact_import'))));
9 }
10
11 /**
12 * Implementation of hook_uninstall().
13 */
14 function constant_contact_uninstall() {
15 $variables = array(
16 'constant_contact_username',
17 'constant_contact_password',
18 'constant_contact_addurl',
19 'constant_contact_delurl',
20 'constant_contact_sendemail',
21 'constant_contact_email_subject',
22 'constant_contact_email_body',
23 'constant_contact_allowanon',
24 'constant_contact_lists',
25 );
26
27 foreach ($variables as $variable) {
28 variable_del($variable);
29 }
30
31 db_query("DELETE FROM {variable} WHERE name LIKE 'constant_contact_blocktext_%'");
32
33 cache_clear_all('*', 'cache', TRUE);
34 cache_clear_all('*', 'cache_filter', TRUE);
35 cache_clear_all('*', 'cache_menu', TRUE);
36 cache_clear_all('*', 'cache_page', TRUE);
37 }

  ViewVC Help
Powered by ViewVC 1.1.2