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

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

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

File size: 592 bytes
RevLine 
[19361]1<?php
2function plugin_install()
3{
4  $tumblr_conf = array(
5    'type' => 'share_1',
6    'position' => 'toolbar',
[19394]7    'img_size' => 'Original',
[19361]8    );
9     
10  conf_update_param('TumblrShare', serialize($tumblr_conf));
11}
12
[19394]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
[19361]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.