Last change
on this file since 52818 was
52818,
checked in by kent1@…, 9 years ago
|
if (!defined("_ECRIRE_INC_VERSION")) return; sur tout fichier PHP pour sécurité future principalement
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
4 | |
---|
5 | // definir ce pipeline, sans ecraser sa valeur s'il existe |
---|
6 | if(!isset($GLOBALS['spip_pipeline']['declarer_champs_extras'])) |
---|
7 | $GLOBALS['spip_pipeline']['declarer_champs_extras'] = ""; |
---|
8 | if(!isset($GLOBALS['spip_pipeline']['objets_extensibles'])) |
---|
9 | $GLOBALS['spip_pipeline']['objets_extensibles'] = ""; |
---|
10 | |
---|
11 | |
---|
12 | // utiliser ce pipeline a part |
---|
13 | // afin d'etre certain d'arriver apres les autres plugins |
---|
14 | // sinon toutes les tables ne sont pas declarees |
---|
15 | // et les champs supplementaires ne peuvent pas se declarer comme il faut |
---|
16 | $GLOBALS['spip_pipeline']['declarer_tables_principales'] .= '||cextras_declarer_champs_apres_les_autres'; |
---|
17 | function cextras_declarer_champs_apres_les_autres($tables_principales) { |
---|
18 | include_spip('base/cextras'); |
---|
19 | return cextras_declarer_tables_principales($tables_principales); |
---|
20 | } |
---|
21 | $GLOBALS['spip_pipeline']['declarer_tables_interfaces'] .= '||cextras_declarer_champs_interfaces_apres_les_autres'; |
---|
22 | function cextras_declarer_champs_interfaces_apres_les_autres($interface) { |
---|
23 | include_spip('base/cextras'); |
---|
24 | return cextras_declarer_tables_interfaces($interface); |
---|
25 | } |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.