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

Revision 19324, 774 bytes checked in by julien1311, 7 years ago (diff)

new options : position and opacity

  • Property svn:eol-style set to LF
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_general" ,"'.addslashes(serialize($config_default_general)).'", "Media Icon plugin general parameters");';
8        pwg_query($query);
9        $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("media_icon_advanced" ,"'.addslashes(serialize($config_default_advanced)).'", "Media Icon plugin advanced parameters");';
10        pwg_query($query);
11}
12
13function plugin_activate() {
14
15}
16
17function plugin_uninstall() {
18        $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="media_icon_general" OR param="media_icon_advanced");';
19        pwg_query($query);
20}
21
22?>
Note: See TracBrowser for help on using the repository browser.