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

Last change on this file since 28369 was 27458, checked in by ddtddt, 11 years ago

[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

File size: 427 bytes
RevLine 
[21222]1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5
6function plugin_install()
7{
[27458]8
[21222]9}
10
[21630]11function plugin_activate()
12{
13  global $conf;
[27458]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 
[21630]24}
25
26
[21222]27function plugin_uninstall()
28{
[27458]29        conf_delete_param('Photo_add_by_show','Photo_add_by');
[21222]30}
31?>
Note: See TracBrowser for help on using the repository browser.