Changeset 15122 for extensions/TweetThis/maintain.inc.php
- Timestamp:
- May 19, 2012, 1:12:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/TweetThis/maintain.inc.php
r12388 r15122 1 1 <?php 2 2 function plugin_install() 3 { 4 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","horizontal,toolbar","TweetThis config");'); 3 { 4 $conf = array( 5 'size' => 'small', 6 'position' => 'toolbar', 7 'count' => true, 8 'via' => null, 9 ); 10 11 conf_update_param('TweetThis', serialize($conf)); 12 } 13 14 function plugin_activate() 15 { 16 global $conf; 17 18 if (@unserialize($conf['TweetThis']) === false) 19 { 20 $conf = explode(',', $conf['TweetThis']); 21 $conf = array( 22 'size' => 'small', 23 'position' => $conf[1], 24 'count' => $conf[1]=='horizontal' || $conf[1]=='vertical', 25 'via' => null, 26 ); 27 28 conf_update_param('TweetThis', serialize($conf)); 29 } 5 30 } 6 31
Note: See TracChangeset
for help on using the changeset viewer.