source: spip-zone/_plugins_/motus/trunk/motus_administrations.php @ 55267

Last change on this file since 55267 was 55267, checked in by marcimat@…, 9 years ago

On utilise l'API de champs extras pour installer et désinstaller

File size: 511 bytes
Line 
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3
4include_spip('inc/cextras');
5include_spip('base/motus');
6
7function motus_upgrade($nom_meta_base_version,$version_cible){
8        $maj = array();
9        cextras_api_upgrade(motus_declarer_champs_extras(), $maj['create']);
10
11        include_spip('base/upgrade');
12        maj_plugin($nom_meta_base_version, $version_cible, $maj);
13}
14
15function motus_vider_tables($nom_meta_base_version) {
16        cextras_api_vider_table(motus_declarer_champs_extras());
17        effacer_meta($nom_meta_base_version);
18}
19
20?>
Note: See TracBrowser for help on using the repository browser.