Changeset 11219 for extensions/Back2Front/maintain.inc.php
- Timestamp:
- Jun 3, 2011, 6:09:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Back2Front/maintain.inc.php
r10852 r11219 39 39 } 40 40 41 function plugin_activate() 42 { 43 global $conf; 44 45 if (!isset($conf['back2front'])) { 46 pwg_query("INSERT INTO `" . CONFIG_TABLE . "` 47 VALUES ('back2front', '".$versos_cat['id'].",click,none', 'Configuration for Back2Front plugin');"); 48 } else { 49 $conf['back2front'] = explode(',', $conf['back2front']); 50 if (!isset($conf['back2front'][3])) { 51 $conf['back2front'][3] = 'top'; 52 $conf['back2front'][4] = serialize(array('default'=>null)); 53 conf_update_param('back2front', implode (',', $conf['back2front'])); 54 } 55 } 56 } 57 58 41 59 function plugin_uninstall() { 42 60 global $conf, $prefixeTable;
Note: See TracChangeset
for help on using the changeset viewer.