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