Last change
on this file since 50378 was
50378,
checked in by kent1@…, 9 years ago
|
Le plugin.xml en anglais ...
Petites modifs sur l'install sans grand intérêt ... dû au déboguage de step
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
4 | |
---|
5 | function boussole_declarer_tables_principales($tables_principales) { |
---|
6 | |
---|
7 | // Tables des boussoles : spip_boussoles |
---|
8 | $boussoles = array( |
---|
9 | "id_site" => "bigint(21) NOT NULL", |
---|
10 | "id_syndic" => "bigint(21) DEFAULT 0 NOT NULL", |
---|
11 | "aka_boussole" => "varchar(32) DEFAULT '' NOT NULL", |
---|
12 | "aka_site" => "varchar(32) DEFAULT '' NOT NULL", |
---|
13 | "url_site" => "varchar(255) DEFAULT '' NOT NULL", |
---|
14 | "aka_groupe" => "varchar(32) DEFAULT '' NOT NULL", |
---|
15 | "rang_groupe" => "integer DEFAULT 0 NOT NULL", |
---|
16 | "rang_site" => "integer DEFAULT 0 NOT NULL", |
---|
17 | "affiche" => "varchar(3) DEFAULT '' NOT NULL", |
---|
18 | "maj" => "timestamp"); |
---|
19 | |
---|
20 | $boussoles_key = array( |
---|
21 | "PRIMARY KEY" => "id_site" |
---|
22 | ); |
---|
23 | |
---|
24 | $tables_principales['spip_boussoles'] = |
---|
25 | array('field' => &$boussoles, 'key' => &$boussoles_key); |
---|
26 | |
---|
27 | return $tables_principales; |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | function boussole_declarer_tables_interfaces($interface) { |
---|
32 | // Les tables |
---|
33 | $interface['table_des_tables']['boussoles'] = 'boussoles'; |
---|
34 | |
---|
35 | // Les traitements |
---|
36 | $interface['table_des_traitements']['URL_SITE']['boussoles']= 'safehtml(vider_url(%s))'; |
---|
37 | |
---|
38 | return $interface; |
---|
39 | } |
---|
40 | |
---|
41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.