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

Revision 17658, 476 bytes checked in by mistic100, 7 years ago (diff)

consolidate upgrade process

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.