source: extensions/TumblrShare/maintain.inc.php @ 20400

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

allow to choose shared size, compatible with 'question_mark_in_url'=false

File size: 592 bytes
Line 
1<?php
2function plugin_install()
3{
4  $tumblr_conf = array(
5    'type' => 'share_1',
6    'position' => 'toolbar',
7    'img_size' => 'Original',
8    );
9     
10  conf_update_param('TumblrShare', serialize($tumblr_conf));
11}
12
13function plugin_activate()
14{
15  global $conf;
16 
17  $tumblr_conf = unserialize($conf['TumblrShare']);
18  if (!isset($tumblr_conf['img_size']))
19  {
20    $tumblr_conf['img_size'] = 'Original';
21    conf_update_param('TumblrShare', serialize($tumblr_conf));
22  }
23}
24
25function plugin_uninstall()
26{
27  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="TumblrShare" LIMIT 1;');
28}
29
30?>
Note: See TracBrowser for help on using the repository browser.