Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | function theme_activate($id, $version, &$errors) |
---|
4 | { |
---|
5 | global $conf; |
---|
6 | |
---|
7 | if (!isset($conf['Slim'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'style_slim' => '2', |
---|
11 | 'color_theme' => '1', |
---|
12 | 'carousel_speed' => '3' |
---|
13 | ); |
---|
14 | |
---|
15 | $query = " |
---|
16 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
17 | VALUES ('Slim' , '".pwg_db_real_escape_string(serialize($config))."' , 'Slim theme parameters');"; |
---|
18 | |
---|
19 | pwg_query($query); |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | function theme_deactivate() |
---|
24 | { |
---|
25 | $query = "DELETE FROM " . CONFIG_TABLE . " WHERE param='Slim';"; |
---|
26 | pwg_query($query); |
---|
27 | } |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.