Changeset 15121 for extensions/GooglePlusOne/maintain.inc.php
- Timestamp:
- May 19, 2012, 1:11:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GooglePlusOne/maintain.inc.php
r11600 r15121 1 1 <?php 2 2 function plugin_install() 3 { 4 pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("GooglePlusOne","medium,toolbar","GooglePlusOne config");'); 3 { 4 $conf = array( 5 'size' => 'medium', 6 'position' => 'toolbar', 7 'annotation' => 'inline', 8 ); 9 10 conf_update_param('GooglePlusOne', serialize($conf)); 11 } 12 13 function 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 } 5 28 } 6 29
Note: See TracChangeset
for help on using the changeset viewer.