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

Contents of /contributions/modules/commentmail/commentmail.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sun Jun 22 15:56:23 2008 UTC (17 months ago) by add1sun
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +9 -2 lines
File MIME type: text/x-php
Cleanup and comment tweaks.
1 <?php
2 // $Id: commentmail.install,v 1.1 2007/02/10 17:27:31 timcn Exp $
3
4 /**
5 * Implementation of hook_update_N().
6 * Changing a variable name to _mode if the old _opt exists.
7 */
8 function commentmail_update_1() {
9 $ret = array();
10
11 variable_set('commentmail_mode', variable_get('commentmail_opt', 'approval'));
12 variable_del('commentmail_opt');
13
14 return $ret;
15 }
16
17 /**
18 * Implementation of hook_uninstall().
19 */
20 function commentmail_uninstall() {
21 variable_del('commentmail_to');
22 variable_del('commentmail_mode');
23 variable_del('commentmail_mail_approve');
24 variable_del('commentmail_mail_notify');
25 }

  ViewVC Help
Powered by ViewVC 1.1.2