source: extensions/Media_Icon/maintain.inc.php @ 19284

Last change on this file since 19284 was 19284, checked in by julien1311, 12 years ago
  • Property svn:eol-style set to LF
File size: 497 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4function plugin_install() {
5        include(dirname(__FILE__).'/config_default.inc.php');
6
7        $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("media_icon" ,"'.addslashes(serialize($config_default)).'", "Media Icon plugin parameters");';
8        pwg_query($query);
9}
10
11function plugin_activate() {
12
13}
14
15function plugin_uninstall() {
16        $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="media_icon";';
17        pwg_query($query);
18}
19
20?>
Note: See TracBrowser for help on using the repository browser.