source: trunk/plugins/AdminTools/maintain.class.php @ 29314

Last change on this file since 29314 was 28692, checked in by mistic100, 10 years ago

use new update pattern

File size: 630 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4class AdminTools_maintain extends PluginMaintain
5{
6  private $default_conf = array(
7    'default_open' => true,
8    'closed_position' => 'left',
9    'public_quick_edit' => true,
10    );
11
12  function install($plugin_version, &$errors=array())
13  {
14    global $conf;
15
16    if (empty($conf['AdminTools']))
17    {
18      conf_update_param('AdminTools', $this->default_conf, true);
19    }
20  }
21
22  function update($old_version, $new_version, &$errors=array())
23  {
24    $this->install($new_version, $errors);
25  }
26
27  function uninstall()
28  {
29    conf_delete_param('AdminTools');
30  }
31}
Note: See TracBrowser for help on using the repository browser.