Ignore:
Timestamp:
Jun 3, 2011, 6:09:08 PM (13 years ago)
Author:
mistic100
Message:

add some options, better intégration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/maintain.inc.php

    r10852 r11219  
    3939}
    4040
     41function 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
    4159function plugin_uninstall() {
    4260        global $conf, $prefixeTable;
Note: See TracChangeset for help on using the changeset viewer.