source: extensions/GooglePlusOne/maintain.inc.php @ 15121

Last change on this file since 15121 was 15121, checked in by mistic100, 12 years ago

update for Piwigo 2.4
change previews with new G+1 appearance
add Annotation parameter

File size: 668 bytes
Line 
1<?php
2function plugin_install()
3{
4  $conf = array(
5    'size' => 'medium',
6    'position' => 'toolbar',
7    'annotation' => 'inline',
8    );
9     
10  conf_update_param('GooglePlusOne', serialize($conf));
11}
12
13function plugin_activate()
14{
15  global $conf;
16 
17  if (@unserialize($conf['GooglePlusOne']) === false)
18  {
19    $conf = explode(',', $conf['GooglePlusOne']);
20    $conf = array(
21      'size' => $conf[0],
22      'position' => $conf[1],
23      'annotation' => 'bubble',
24      );
25     
26    conf_update_param('GooglePlusOne', serialize($conf));
27  }
28}
29
30function plugin_uninstall()
31{
32  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="GooglePlusOne" LIMIT 1;');
33}
34
35?>
Note: See TracBrowser for help on using the repository browser.