Last change
on this file since 19539 was
19324,
checked in by julien1311, 11 years ago
|
new options : position and opacity
|
-
Property svn:eol-style set to
LF
|
File size:
774 bytes
|
Rev | Line | |
---|
[19284] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | function plugin_install() { |
---|
| 5 | include(dirname(__FILE__).'/config_default.inc.php'); |
---|
| 6 | |
---|
[19324] | 7 | $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("media_icon_general" ,"'.addslashes(serialize($config_default_general)).'", "Media Icon plugin general parameters");'; |
---|
[19284] | 8 | pwg_query($query); |
---|
[19324] | 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); |
---|
[19284] | 11 | } |
---|
| 12 | |
---|
| 13 | function plugin_activate() { |
---|
| 14 | |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | function plugin_uninstall() { |
---|
[19324] | 18 | $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE (param="media_icon_general" OR param="media_icon_advanced");'; |
---|
[19284] | 19 | pwg_query($query); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.