source: extensions/ContactForm/maintain.inc.php @ 17658

Last change on this file since 17658 was 17658, checked in by mistic100, 12 years ago

consolidate upgrade process

File size: 476 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4include_once(PHPWG_PLUGINS_PATH . 'ContactForm/include/install.inc.php');
5
6function plugin_install() 
7{
8  contact_form_install();
9  define('contact_form_installed', true);
10}
11
12function plugin_activate()
13{
14  if (!defined('contact_form_installed'))
15  {
16    contact_form_install();
17  }
18}
19
20function plugin_uninstall() 
21{
22  pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%" LIMIT 3;');
23}
24
25?>
Note: See TracBrowser for help on using the repository browser.