source:
spip-zone/_plugins_/edition_directe/branches/3.0/edition_directe_fonctions.php
@
61020
Last change on this file since 61020 was 61020, checked in by , 9 years ago | |
---|---|
File size: 405 bytes |
Line | |
---|---|
1 | <?php |
2 | // teste si l'objet est en mode edition directe ou non |
3 | function objet_edition_directe($objet){ |
4 | include_spip('inc/config'); |
5 | if(!$config=lire_config('edition_directe')) |
6 | $config=array('article'=>'on'); |
7 | |
8 | $pipeline= pipeline('edition_directe_controle',array( |
9 | 'args'=>array( |
10 | 'objet'=>$objet |
11 | ), |
12 | 'data'=>$config |
13 | )); |
14 | return ($pipeline ? $pipeline[$objet]:$config[$objet]); |
15 | } |
16 | ?> |
Note: See TracBrowser
for help on using the repository browser.