Last change
on this file since 11072 was
11072,
checked in by cljosse, 13 years ago
|
- Create the plugin set / unset plugins
|
File size:
652 bytes
|
Line | |
---|
1 | function plugin_install() |
---|
2 | { |
---|
3 | global $conf; |
---|
4 | |
---|
5 | if (!isset($conf['set_plugins'])) |
---|
6 | { |
---|
7 | |
---|
8 | $q = ' |
---|
9 | INSERT INTO '.CONFIG_TABLE.' (param, value, comment) |
---|
10 | VALUES ("set_plugins","","set_plugins") |
---|
11 | ;'; |
---|
12 | pwg_query($q); |
---|
13 | } |
---|
14 | |
---|
15 | |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | function plugin_uninstall() |
---|
21 | { |
---|
22 | global $conf; |
---|
23 | if (isset($conf['set_plugins'])) |
---|
24 | { |
---|
25 | $q = ' |
---|
26 | DELETE FROM '.CONFIG_TABLE.' |
---|
27 | WHERE param="set_plugins" |
---|
28 | ;'; |
---|
29 | pwg_query($q); |
---|
30 | } |
---|
31 | // $query = 'DROP TABLE IF EXISTS '.set_plugins_TABLE.';'; |
---|
32 | // pwg_query( $query); |
---|
33 | } |
---|
34 | |
---|
35 | |
---|
36 | function plugin_activate() { |
---|
37 | // Put anything here that should be executed during activation. |
---|
38 | } |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.