source: extensions/see_photos_by_user/maintain.inc.php @ 30403

Last change on this file since 30403 was 30403, checked in by ddtddt, 9 years ago
File size: 1.0 KB
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH'))
4    die('Hacking attempt!');
5
6function plugin_activate() {
7
8    global $conf;
9
10    if (!isset($conf['see_photos_by_user_nbphotos'])) {
11        conf_update_param('see_photos_by_user_nbphotos', '0');
12    }
13    if (!isset($conf['see_photos_by_user_limit'])) {
14        conf_update_param('see_photos_by_user_limit', '1000');
15    }
16    if (!isset($conf['see_photos_by_user_order'])) {
17        conf_update_param('see_photos_by_user_order', 'username ASC');
18    }
19    if (!isset($conf['see_photos_by_user_show'])) {
20        conf_update_param('see_photos_by_user_show', '1');
21    }
22    if (!isset($conf['see_photos_by_user_color'])) {
23        conf_update_param('see_photos_by_user_color', '#ffffff');
24    }
25}
26
27function plugin_install() {
28}
29
30function plugin_uninstall() {
31    conf_delete_param('see_photos_by_user_nbphotos');
32    conf_delete_param('see_photos_by_user_limit');
33    conf_delete_param('see_photos_by_user_order');
34    conf_delete_param('see_photos_by_user_show');
35    conf_delete_param('see_photos_by_user_color');
36}
37?>
Note: See TracBrowser for help on using the repository browser.