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