source: extensions/Photo_add_by/maintain.inc.php @ 27458

Revision 27458, 427 bytes checked in by ddtddt, 6 years ago (diff)

[extensions] - Photo_add_by - if plugin see photo by user is actif - can show link on user on picture page with parameter plugin see photo by user

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