Last change
on this file since 73316 was
73316,
checked in by abelass@…, 8 years ago
|
Plugin qui lie des continents au pays du plugin pays
|
File size:
851 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Fichier gérant l'installation et désinstallation du plugin Continents |
---|
4 | * |
---|
5 | * @plugin Continents |
---|
6 | * @copyright 2013 |
---|
7 | * @author Rainer Müller |
---|
8 | * @licence GNU/GPL |
---|
9 | * @package SPIP\Continents\Installation |
---|
10 | */ |
---|
11 | |
---|
12 | if (!defined('_ECRIRE_INC_VERSION')) return; |
---|
13 | |
---|
14 | |
---|
15 | function continents_upgrade($nom_meta_base_version, $version_cible) { |
---|
16 | $maj = array(); |
---|
17 | |
---|
18 | |
---|
19 | include_spip('base/upgrade'); |
---|
20 | include_spip('base/continents_peupler'); |
---|
21 | $maj['create'] = array( |
---|
22 | array('maj_tables', array('spip_pays','spip_continents')), |
---|
23 | array('peupler_base_continents'), |
---|
24 | array('inserer_table_pays'), |
---|
25 | ); |
---|
26 | |
---|
27 | maj_plugin($nom_meta_base_version, $version_cible, $maj); |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | function continents_vider_tables($nom_meta_base_version) { |
---|
32 | |
---|
33 | sql_drop_table("spip_continents"); |
---|
34 | |
---|
35 | effacer_meta($nom_meta_base_version); |
---|
36 | } |
---|
37 | |
---|
38 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.