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

Revision 27428, 754 bytes checked in by ddtddt, 5 years ago (diff)

[extensions] - see_photos_by_user - new function menu / show

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